public static IncomeTaxRates getInstance() { if(instance == null) { instance = new IncomeTaxRates(); } return instance; }
public static IncomeTaxRates getInstance() { if (instance == null) { instance = new IncomeTaxRates(); } return(instance); }
private IncomeTaxRate getRatesForIncome() { uint income = 0; try { income = uint.Parse(this.textBoxAnnualSalary.Text); } catch (FormatException fe) { Console.WriteLine("annual salary shold be an integer {0}", fe.Message); } return(IncomeTaxRates.getInstance().getRateForIncome(income)); }