[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.CreatePredicate

CreatePredicate Method

CreatePredicate<T>(IDataCollection<T>, FilterExpression?, FilterCache?)

Creates the predicate from the filterExpression.

Declaration
public static Func<object, int, bool> CreatePredicate<T>(this IDataCollection<T> dataCollection, FilterExpression? filterExpression, C1FilterDataCollection<T>.FilterCache? cache = null) where T : class?
Public Shared Function CreatePredicate(Of T As Class)(dataCollection As IDataCollection(Of T), filterExpression As FilterExpression, Optional cache As C1FilterDataCollection(Of T).FilterCache = Nothing) As Func(Of Object, Integer, Boolean)
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

FilterExpression filterExpression

The filter expression.

C1FilterDataCollection<T>.FilterCache cache

Optional filter cache to accelerate predicate creation if it was already created.

Returns
Type Description
Func<object, int, bool>
Type Parameters
Name Description
T