Creates a Function to evaluate a given property path on a given object. For the property path: MyProperty1.MyProperty2 it will return the following function: i => i.MyProperty1.MyProperty2
Syntax
'Declaration
Public Overloads Shared Function CreateSelector
(Of ,)( _
ByVal As System.String _
) As System.Func(Of T,X)
public static System.Func<T,X> CreateSelector<,>(
System.string
)
Parameters
- path
- The path.
Type Parameters
- T
- Type of the element where the property path will be accessed.
- X
- Type of the result after evaluated the full property path.
Example
For the property path: MyProperty1.MyProperty2 it will return the following function: i => i.MyProperty1.MyProperty2
See Also