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; }
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; }