Пример #1
0
        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;
        }
Пример #2
0
        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);
        }