Skip to content

FieldAccessor Methods

Functionality for accessing fields.

GetGetter(Type, string)

static
View source
public static Delegate GetGetter(Type declaringType, string fieldName)
Returns a delegate to get the value of a specified field.

Parameters

declaringTypeType
fieldNamestring

Returns

A delegate to get the value of a specified field.

GetReferenceSetter(Type, string)

static
View source
public static Delegate GetReferenceSetter(Type declaringType, string fieldName)
Returns a delegate to set the value of this field for an instance.

Parameters

declaringTypeType
fieldNamestring

Returns

A delegate to set the value of this field for an instance.

GetValueGetter(Type, string)

static
View source
public static Delegate GetValueGetter(Type declaringType, string fieldName)
Returns a delegate to get the value of a specified field.

Parameters

declaringTypeType
fieldNamestring

Returns

A delegate to get the value of a specified field.

GetValueSetter(Type, string)

static
View source
public static Delegate GetValueSetter(Type declaringType, string fieldName)
Returns a delegate to set the value of this field for an instance.

Parameters

declaringTypeType
fieldNamestring

Returns

A delegate to set the value of this field for an instance.