Beispiel #1
0
 /// <summary>
 /// Create an expression using an ienumerable with a stub expression true or false to use when the expression is not yet started.
 /// May be used to instantiate ExpressionStarter objects with anonymous types.
 /// </summary>
 /// <typeparam name="T">The type</typeparam>
 /// <param name="ienumerable">The value is NOT used. Only serves as a way to provide the generic type.</param>
 public static ExpressionStarter <T> New <T>(IEnumerable <T> ienumerable, bool defaultExpression)
 => PredicateBuilder.New <T>(defaultExpression);
Beispiel #2
0
 /// <summary>
 /// Create an expression using an ienumerable.
 /// May be used to instantiate ExpressionStarter objects with anonymous types.
 /// </summary>
 /// <typeparam name="T">The type</typeparam>
 /// <param name="ienumerable">The value is NOT used. Only serves as a way to provide the generic type.</param>
 public static ExpressionStarter <T> New <T>(IEnumerable <T> ienumerable, Expression <Func <T, bool> > expr = null)
 => PredicateBuilder.New <T>();