Esempio n. 1
0
 internal Matcher(Tuple <T1, T2> item)
 {
     _item             = item;
     _functionSelector = new MatchFunctionSelector <Tuple <T1, T2>, EitherTuple <T1, T2>, TResult>(x =>
     {
         throw new NoMatchException($"No match action exists for value of ({_item.Item1}, {_item.Item2}");
     });
 }
Esempio n. 2
0
 internal Matcher(T1 item)
 {
     _item             = item;
     _functionSelector = new MatchFunctionSelector <T1, T1, TResult>(
         x => throw new NoMatchException($"No match action exists for value of {_item}"));
 }