示例#1
0
 public static Vehicle ByPriceColor(int price, int color)
 {
     Vehicle vehicle = new Vehicle();
     vehicle.price = price;
     vehicle.color = color;
     return vehicle;
 }
示例#2
0
 public static Vehicle ByBrandModel(string brand, string model)
 {
     Vehicle vehicle = new Vehicle();
     vehicle.brand = brand;
     vehicle.model = model;
     return vehicle;
 }
示例#3
0
 public static Vehicle ByBrandModelColor(string brand, string model, int color)
 {
     Vehicle vehicle = new Vehicle();
     vehicle.brand = brand;
     vehicle.model = model;
     vehicle.color = color;
     return vehicle;
 }
示例#4
0
 public static Vehicle ByPrice(int price)
 {
     Vehicle vehicle = new Vehicle();
     vehicle.price = price;
     return vehicle;
 }
示例#5
0
 public static Vehicle ByBrand(string brand)
 {
     Vehicle vehicle = new Vehicle();
     vehicle.brand = brand;
     return vehicle;
 }