Exemple #1
0
 public FinancialPlan(FinancialPlan copyFrom)
 {
     DateCreated    = DateTime.Now;
     Income         = copyFrom.Income;
     Savings        = copyFrom.Savings;
     PlannedSavings = copyFrom.PlannedSavings;
     FinancialGoals = copyFrom.FinancialGoals;
     Expenses       = copyFrom.Expenses;
 }
Exemple #2
0
        public object Clone()
        {
            FinancialPlan clone = new FinancialPlan
            {
                Income         = Income,
                Savings        = Savings,
                PlannedSavings = PlannedSavings,
                //  FinancialGoals = (List<FinancialGoal>)FinancialGoals.Clone(),
                // Expenses = (List<Expense>)Expenses.Clone()
            };

            return(clone);
        }