Esempio n. 1
0
 public static void Reconstruct(ref Car car, CarEngine carEngine)
 {
     car.Engine = carEngine;
 }
Esempio n. 2
0
 public static Car Construct(CarColor color, CarEngine engine, CarTransmission transmission)
 {
     return(new Car(color, engine, transmission));
 }
Esempio n. 3
0
 public Car(CarColor color, CarEngine engine, CarTransmission transmission)
 {
     Color        = color;
     Engine       = engine;
     Transmission = transmission;
 }