public MatchCreationExtensionPoint(IGetTheValueOfAnAttribute <ItemToMatch, AttributeType> accessor)
 {
     this.accessor = accessor;
 }
Beispiel #2
0
 public AttributeMatch(IGetTheValueOfAnAttribute <ItemToMatch, AttributeType> get_the_value, IMatchA <AttributeType> value_criteria)
 {
     this.get_the_value  = get_the_value;
     this.value_criteria = value_criteria;
 }
Beispiel #3
0
 with_attribute <AttributeType>(IGetTheValueOfAnAttribute <ItemToMatch, AttributeType> accessor)
 {
     return(new MatchCreationExtensionPoint <ItemToMatch, AttributeType>(accessor));
 }
Beispiel #4
0
 public static FilteringExtensionPoint <ItemType, AttributeType> where < ItemType, AttributeType > (this IEnumerable <ItemType> items, IGetTheValueOfAnAttribute <ItemType, AttributeType> accessor)
 {
     return(new FilteringExtensionPoint <ItemType, AttributeType>(Match <ItemType> .with_attribute(accessor),
                                                                  items));
 }