예제 #1
0
 internal WhereForOption(Func <T, bool> predicate, Action <Func <Option <T>, bool>, Action <T> > addPredicateAndAction,
                         OptionMatcher <T> matcher)
 {
     _predicate             = predicate;
     _addPredicateAndAction = addPredicateAndAction;
     _matcher = matcher;
 }
예제 #2
0
 public NoneMatcher(OptionMatcher <T> matcher, Action <Func <Option <T>, bool>, Action <Option <T> > > addPredicateAndAction)
 {
     _addPredicateAndAction = addPredicateAndAction;
     _matcher = matcher;
 }
예제 #3
0
 internal OfMatcher(T value, OptionMatcher <T> matcher, Action <DelegateFunc <Option <T>, bool>, Action <T> > addPredicateAndAction)
 {
     _matcher = matcher;
     _addPredicateAndAction = addPredicateAndAction;
     _values.Add(value);
 }
예제 #4
0
 public SomeMatcher(OptionMatcher <T> matcher, Action <DelegateFunc <Option <T>, bool>, Action <T> > addPredicateAndAction)
 {
     _matcher = matcher;
     _addPredicateAndAction = addPredicateAndAction;
 }