Example #1
0
 public decimal CalculatorDiscount(Product216 product)
 {
     return(product.Discount());
 }
Example #2
0
 // extension method
 public static decimal Discount(this Product216 product)
 {
     return(product.Price * .9M);
 }