Пример #1
0
 public static Switch Case <T>(this Switch s, Action <T> a, bool fallThrough) where T : class
 {
     return(Case(s, o => true, a, fallThrough));
 }
Пример #2
0
 public static Switch Case <T>(this Switch s, Func <T, bool> c, Action <T> a) where T : class
 {
     return(Case(s, c, a, false));
 }
Пример #3
0
 public static Switch Case <T>(this Switch s, Action <T> a)  where T : class
 {
     return(Case(s, o => true, a, false));
 }