Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / CreatePredicate<T> Method
The data collection.
The filter expression.

In This Topic
    CreatePredicate<T> Method
    In This Topic
    Creates the predicate from the filterExpression.
    Syntax
    'Declaration
     
    
    Public Shared Function CreatePredicate(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal filterExpression As FilterExpression _
    ) As Func(Of Object,Boolean)
    public static Func<object,bool> CreatePredicate<T>( 
       IDataCollection<T> dataCollection,
       FilterExpression? filterExpression
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    filterExpression
    The filter expression.

    Type Parameters

    T
    See Also