Extracts the underlying System.Reflection.PropertyInfo from System.Linq.Expressions.Expressions
Inheritance
System.Object
PropertyInfoExtractor
Assembly: Solti.Utils.Primitives.dll
public static class PropertyInfoExtractor : Object
Methods
Extracts the underlying System.Reflection.PropertyInfo from the given expression
Declaration
public static PropertyInfo Extract(LambdaExpression expression)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.LambdaExpression |
expression |
|
Returns
Type |
Description |
System.Reflection.PropertyInfo |
|
Extracts the underlying System.Reflection.PropertyInfo from the given expression
Declaration
public static PropertyInfo Extract<T>(Expression<Func<T>> expression)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T>> |
expression |
|
Returns
Type |
Description |
System.Reflection.PropertyInfo |
|
Type Parameters
Extracts the underlying System.Reflection.PropertyInfo from the given expression
Declaration
public static PropertyInfo Extract<T, TT>(Expression<Func<T, TT>> expression)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<T, TT>> |
expression |
|
Returns
Type |
Description |
System.Reflection.PropertyInfo |
|
Type Parameters