ComponentOne FinancialChart for WPF
C1.WPF Namespace / C1PropertyPathHelper Class / CreateSelector Method / CreateSelector<T,X>(String) Method
Type of the element where the property path will be accessed.
Type of the result after evaluated the full property path.
The path.



In This Topic
    CreateSelector<T,X>(String) Method
    In This Topic
    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 T,X)( _
       ByVal path As String _
    ) As Func(Of T,X)
    'Usage
     
    
    Dim path As String
    Dim value As Func(Of T,X)
     
    value = C1PropertyPathHelper.CreateSelector(Of T, X)(path)
    public static Func<T,X> CreateSelector<T,X>( 
       string path
    )
    public:
    static Func<T^,X^>^ CreateSelectorgeneric<typename T>
    generic<typename X>
    ( 
       String^ path
    ) 

    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