public FilteringExtensionPoint( IProvideAccessToMatchCreationExtensions <Item, AttributeType, IMatchA <Item> > filter_extensions, IEnumerable <Item> items) { this.filter_extensions = filter_extensions; this.items = items; }
public static ReturnType between <ItemToMatch, AttributeType, ReturnType>(this IProvideAccessToMatchCreationExtensions <ItemToMatch, AttributeType, ReturnType> extension_point, AttributeType start, AttributeType end) where AttributeType : IComparable <AttributeType> { var match = new EqualAnyMatch <AttributeType>(start).or(new GreaterThan <AttributeType>(start)).and( new EqualAnyMatch <AttributeType>(end).or(new LessThan <AttributeType>(end))); return(extension_point.for_value_matcher(match)); }
public NegatingMatchCreationExtensionPoint(IProvideAccessToMatchCreationExtensions <ItemToMatch, AttributeType, IMatchA <ItemToMatch> > original) { this.original = original; }
public NegatingFilteringExtensionPoint( IProvideAccessToMatchCreationExtensions <Item, AttributeType, IEnumerable <Item> > original) { this.original = original; }
public static ReturnType greater_than <ItemToMatch, ReturnType>( this IProvideAccessToMatchCreationExtensions <ItemToMatch, DateTime, ReturnType> extension_point, int year) { return(extension_point.for_value_matcher( Match <DateTime> .with_attribute(x => x.Year).greater_than(year))); }
public static ReturnType equal_to <ItemToMatch, AttributeType, ReturnType>(this IProvideAccessToMatchCreationExtensions <ItemToMatch, AttributeType, ReturnType> extension_point, AttributeType value) { return(extension_point.equal_to_any(value)); }
public static ReturnType less_than <ItemToMatch, AttributeType, ReturnType>(this IProvideAccessToMatchCreationExtensions <ItemToMatch, AttributeType, ReturnType> extension_point, AttributeType value) where AttributeType : IComparable <AttributeType> { return(extension_point.for_value_matcher(new LessThan <AttributeType>(value))); }
public static ReturnType falls_in <ItemToMatch, AttributeType, ReturnType>(this IProvideAccessToMatchCreationExtensions <ItemToMatch, AttributeType, ReturnType> extension_point, IContainValues <AttributeType> range) where AttributeType : IComparable <AttributeType> { return(extension_point.for_value_matcher(new FallsIn <AttributeType>(range))); }
public static ReturnType for_value_matcher <ItemToMatch, AttributeType, ReturnType>(this IProvideAccessToMatchCreationExtensions <ItemToMatch, AttributeType, ReturnType> extension_point, IMatchA <AttributeType> value_condition) { return(extension_point.create_dsl_result(value_condition)); }
public static ReturnType equal_to_any <ItemToMatch, AttributeType, ReturnType>(this IProvideAccessToMatchCreationExtensions <ItemToMatch, AttributeType, ReturnType> extension_point, params AttributeType[] values) { return(extension_point.for_value_matcher(new EqualAnyMatch <AttributeType>(values))); }