Class ExpressionBuilder
Provides static methods to create System.Linq.Expressions.Expression<TDelegate> instances.
Inheritance
System.Object
ExpressionBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ChameleonForms.Utils
Assembly: ChameleonForms.dll
Syntax
public static class ExpressionBuilder
Methods
| Improve this Doc View SourceCreateAccessor<T, TResult>(String)
Creates a lambda expression that represents an accessor to a property from an object of type T
.
Declaration
public static Expression<Func<T, TResult>> CreateAccessor<T, TResult>(string propertyNameOrPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyNameOrPath | The name or the path to the property to be accessed composed of simple dot-separated property access expressions. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression<System.Func<T, TResult>> | The built System.Linq.Expressions.Expression<TDelegate> instance representing the property accessor. |
Type Parameters
Name | Description |
---|---|
T | The type that contains the property to be accessed. |
TResult | The type of the accessed property used as the delegate return type. |