コード例 #1
0
 public Product MakePizza()
 {
     Product product = new Product();
     product.Name = "Pizza";
     product.Price = 12;
     return product;
 }
コード例 #2
0
 public Product MakeToyCar()
 {
     Product product = new Product();
     product.Name = "ToyCar";
     product.Price = 100;
     return product;
 }
コード例 #3
0
 public void Log(Product product)
 {
     Console.WriteLine("Product '{0}' created at {1}. Price is {2}.", product.Name, DateTime.UtcNow, product.Price);
 }
コード例 #4
0
 public Product Make()
 {
     Product product = new Product();
     product.Name = "ToyCar";
     product.Price = 100;
     return product; throw new NotImplementedException();
 }