Ejemplo n.º 1
0
 public PredicateOperatorBuilder(IPredicateOperators operators, string name)
 {
     _operators  = operators;
     _sourceType = typeof(TSource);
     _name       = name;
     _operators  = operators;
 }
Ejemplo n.º 2
0
 public static PredicateOperatorBuilder <TSource> Predicate <TSource>(this IPredicateOperators predicateOperators, string token)
 {
     if (predicateOperators == null)
     {
         throw new ArgumentNullException(nameof(predicateOperators));
     }
     if (token == null)
     {
         throw new ArgumentNullException(nameof(token));
     }
     return(new PredicateOperatorBuilder <TSource>(predicateOperators, token));
 }
Ejemplo n.º 3
0
 public static SubsetOperatorBuilder <TResult> Subset <TResult>(this IPredicateOperators predicateOperators, string token)
 {
     if (predicateOperators == null)
     {
         throw new ArgumentNullException(nameof(predicateOperators));
     }
     if (token == null)
     {
         throw new ArgumentNullException(nameof(token));
     }
     return(new SubsetOperatorBuilder <TResult>(predicateOperators, token));
 }
Ejemplo n.º 4
0
 public SubsetOperatorBuilder(IPredicateOperators operators, string name)
 {
     if (operators == null)
     {
         throw new ArgumentNullException(nameof(operators));
     }
     if (name == null)
     {
         throw new ArgumentNullException(nameof(name));
     }
     _resultType = typeof(TResult);
     _operators  = operators;
     _name       = name;
 }