Class PropertyInfoExtensions
Reflection extensions.
Namespace: Evergine.Common.Helpers
Assembly: Evergine.Common.dll
Syntax
public static class PropertyInfoExtensions
Methods
GetValueGetter(PropertyInfo)
Get the expression of a value getter for a property. Compile the expression to execute or combine it with other expressions.
Declaration
public static Func<object, object> GetValueGetter(this PropertyInfo propertyInfo)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertyInfo | The property information. |
Returns
GetValueSetter(PropertyInfo)
Gets the expression of a value setter for a property. Compile the expression to execute or combine it with other expressions.
Declaration
public static Action<object, object> GetValueSetter(this PropertyInfo propertyInfo)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertyInfo | The property info. |