public double ApplyTime() { ExpenseValues values = new ExpenseValues(); values.AnnualPaidOutsideFunds = 0.0; double expense = mPeriodicExpense; double outside = 0.50 * expense; expense = expense - outside; // if you comment the next line the rutn value == 5000 (correct) values.AnnualPaidOutsideFunds += outside; return expense; }
public double ApplyTime() { ExpenseValues values = new ExpenseValues(); values.AnnualPaidOutsideFunds = 0.0; double expense = mPeriodicExpense; double outside = 0.50 * expense; expense = expense - outside; // if you comment the next line the rutn value == 5000 (correct) values.AnnualPaidOutsideFunds += outside; return(expense); }