A reflection strategy that uses either traditional reflection or compiled lambda expressions to get property values from an object.

Inheritance

constructor

public FastReflectionHelper()

Returns FastReflectionHelper

constructor

public FastReflectionHelper(bool useTraditionalReflection, string propertyName)

Returns FastReflectionHelper

Returns true if the fast reflection helper is invalid, probably due to a lack of a property name.

public bool Invalid { get; }

Gets or sets the property name of the current FastReflectionHelper object.

public string PropertyName { get; set; }

Indicates that current FastReflectionHelper object is not using compiled expressions.

public bool UseTraditionalReflection { get; set; }

Gets the property value from the specified item.

public object GetPropertyValue(object item)

Parameters

  • item: object

Returns any

Gets the property value for the specified item.

public object GetPropertyValue(Type itemType, object item)

Parameters

  • itemType: Type
  • item: object

Returns any

Sets the property value for the specified item.

public void SetPropertyValue(object item, object value)

Parameters

  • item: object
  • value: object

Returns any