Example #1
0
 public static SwithCaseExt.SwithCase <TCase, TOther> Case <TCase, TOther>(this SwithCaseExt.SwithCase <TCase, TOther> sc, TCase option, TOther other, bool bBreak) where TCase : IEquatable <TCase>
 {
     return(sc.Case <TCase, TOther>((Predicate <TCase>)(c => c.Equals(option)), other, bBreak));
 }
Example #2
0
 public static SwithCaseExt.SwithCase <TCase, TOther> Case <TCase, TOther>(this SwithCaseExt.SwithCase <TCase, TOther> sc, Predicate <TCase> predict, TOther other) where TCase : IEquatable <TCase>
 {
     return(sc.Case <TCase, TOther>(predict, other, true));
 }
Example #3
0
 public static SwithCaseExt.SwithCase <TCase, TOther> Case <TCase, TOther>(this SwithCaseExt.SwithCase <TCase, TOther> sc, TCase option, TOther other) where TCase : IEquatable <TCase>
 {
     return(sc.Case <TCase, TOther>(option, other, true));
 }