Example #1
0
 public static _Match <T, P> Case <T, P>(this _Match <T, P> poSwitch, T poValue, P poReturnValue)
 {
     return(poSwitch.Case(o => o == null ? poValue == null : o.Equals(poValue), poReturnValue));
 }
Example #2
0
 public static _Match <T, P> Case <T, P>(this _Match <T, P> poSwitch, Func <T, Boolean> poPredicate, P poReturnValue)
 {
     return(poSwitch.Case(poPredicate, o => poReturnValue));
 }
Example #3
0
 public static _Match <T, P> Case <T, P>(this _Match <T, P> poSwitch, T poValue, Func <T, P> poAction)
 {
     return(poSwitch.Case(o => o == null ? poValue == null : o.Equals(poValue), poAction));
 }