Пример #1
0
 public double GetTax(double income)
 {
     return(m_strategy.CalculateTax(income));
 }
Пример #2
0
 public double GetTax(double income)
 {
     return(_strategy?.CalculateTax(income) ?? 0);
 }