C# Класс FastMember.TypeAccessor

Provides by-name member-access to objects of a given type
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Create ( Type type, bool allowNonPublicAccessors ) : 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

GetMembers ( ) : MemberSet

Query the members available for this type

this ( object target, string name ) : object

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

Приватные методы

Метод Описание
Cast ( ILGenerator il, Type type, bool valueAsPointer ) : void
CreateNew ( Type type, bool allowNonPublicAccessors ) : TypeAccessor
GetNextCounterValue ( ) : int
IsFullyPublic ( Type type, PropertyInfo props, bool allowNonPublicAccessors ) : bool
WriteMapImpl ( ILGenerator il, Type type, List members, FieldBuilder mapField, bool allowNonPublicAccessors, bool isGet ) : void

Описание методов

Create() публичный статический Метод

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
Результат TypeAccessor

Create() публичный статический Метод

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, bool allowNonPublicAccessors ) : TypeAccessor
type System.Type
allowNonPublicAccessors bool
Результат TypeAccessor

CreateNew() публичный Метод

Create a new instance of this type
public CreateNew ( ) : object
Результат object

GetMembers() публичный Метод

Query the members available for this type
public GetMembers ( ) : MemberSet
Результат MemberSet

this() публичный абстрактный Метод

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
Результат object