Esempio n. 1
0
 public FilterDefinition(string filterName, FilterCategory filterCategory, int maxInBody, LookupAPICategory lookupAPICategory)
 {
     this.filterName        = filterName ?? throw new ArgumentNullException("filterName");
     this.filterCategory    = filterCategory;
     this.lookupAPICategory = lookupAPICategory;
     this.maxInBody         = maxInBody;
 }
Esempio n. 2
0
 public CoerceDataFilterDefinition(string filterName, FilterCategory filterCategory, int maxInBody, LookupAPICategory lookupAPICategory, Func <object, T> coerceValue, Func <T, Nullable <T>, Nullable <T>, bool> inRange)
     : base(filterName, filterCategory, maxInBody, lookupAPICategory)
 {
     this.coerceValue = coerceValue;
     this.inRange     = inRange;
 }