コード例 #1
0
 internal ResultMatcherWithElse(MatchFunctionSelector <T1, TResult> selector, DelegateFunc <T1, TResult> elseAction, T1 value)
 {
     _selector   = selector;
     _elseAction = elseAction;
     _value      = value;
 }
コード例 #2
0
 internal ResultMatcher(T1 item)
 {
     _item             = item;
     _functionSelector = new MatchFunctionSelector <T1, TResult>(
         x => { throw new NoMatchException($"No match action exists for value of {_item}"); });
 }