C# Class Serenity.Reflection.TypeAccessor

Provides by-name member-access to objects of a given type
ファイルを表示 Open project: volkanceylan/Serenity Class Usage Examples

Public Methods

Method Description
Create ( Type type ) : TypeAccessor

Provides a type-specific accessor, allowing by-name access for all objects of that type

The accessor is cached internally; a pre-existing accessor may be returned

CreateNew ( ) : object

Create a new instance of this type

this ( object target, string name ) : object

Get or set the value of a named member on the target instance

Private Methods

Method Description
Cast ( ILGenerator il, Type type, LocalBuilder addr ) : void
CreateNew ( Type type ) : TypeAccessor
IsFullyPublic ( Type type ) : bool
WriteGetter ( ILGenerator il, Type type, PropertyInfo props, FieldInfo fields, bool isStatic ) : void
WriteSetter ( ILGenerator il, Type type, PropertyInfo props, FieldInfo fields, bool isStatic ) : void

Method Details

Create() public static method

Provides a type-specific accessor, allowing by-name access for all objects of that type
The accessor is cached internally; a pre-existing accessor may be returned
public static Create ( Type type ) : TypeAccessor
type System.Type
return TypeAccessor

CreateNew() public method

Create a new instance of this type
public CreateNew ( ) : object
return object

this() public abstract method

Get or set the value of a named member on the target instance
public abstract this ( object target, string name ) : object
target object
name string
return object