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