Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
KSP.UI.Screens.Settings.Controls.AccessorBase Class Reference

Wrapper around MemberInfo providing transparent access to fields, propteries and constant-index arrays. More...

Inheritance diagram for KSP.UI.Screens.Settings.Controls.AccessorBase:
KSP.UI.Screens.Settings.Controls.FieldAccessor KSP.UI.Screens.Settings.Controls.PropertyAccessor

Static Public Member Functions

static AccessorBase Create (Type objType, object obj, string memberExpr)
 Use a parsed expression to create an accessor to either a field or a property. More...
 

Protected Member Functions

 AccessorBase (object obj, MemberInfo member)
 

Protected Attributes

MemberInfo member
 
object obj
 

Properties

abstract object Value [get, set]
 

Detailed Description

Wrapper around MemberInfo providing transparent access to fields, propteries and constant-index arrays.

Constructor & Destructor Documentation

KSP.UI.Screens.Settings.Controls.AccessorBase.AccessorBase ( object  obj,
MemberInfo  member 
)
inlineprotected

Member Function Documentation

static AccessorBase KSP.UI.Screens.Settings.Controls.AccessorBase.Create ( Type  objType,
object  obj,
string  memberExpr 
)
inlinestatic

Use a parsed expression to create an accessor to either a field or a property.

The expression can be almost any valid C# member access expression (though currently only ASCII identifiers are valid). Fields, properties and arrays are supported, but the array index must be a constant integer.

Member Data Documentation

MemberInfo KSP.UI.Screens.Settings.Controls.AccessorBase.member
protected
object KSP.UI.Screens.Settings.Controls.AccessorBase.obj
protected

Property Documentation

abstract object KSP.UI.Screens.Settings.Controls.AccessorBase.Value
getset

The documentation for this class was generated from the following file: