Beispiel #1
0
 public static CarWithIInvariant Park(this CarWithIInvariant source)
 {
     ((Car)source).Parked = true;
     return(source);
 }
Beispiel #2
0
 public static CarWithIInvariant DriveFast(this CarWithIInvariant source)
 {
     ((Car)source).DriveFast();
     return(source);
 }
Beispiel #3
0
 public static CarWithIInvariant DriveFar(this CarWithIInvariant source)
 {
     ((Car)source).NeedFuel = true;
     return(source);
 }