示例#1
0
 internal ExecMatcher(T1 item)
 {
     _item           = item;
     _actionSelector = new MatchActionSelector <T1>(
         x => { throw new NoMatchException($"No match action exists for value of {_item}"); });
 }
 internal ExecMatcherAfterElse(MatchActionSelector <T1> selector, Action <T1> elseAction, T1 value)
 {
     _selector   = selector;
     _elseAction = elseAction;
     _value      = value;
 }