internal ListaInvestimentos(Investimento investimento) { if (Investimentos == null) { Investimentos = new List <Investimento>(); } this.Add(investimento); }
public void Add(Investimento investimento) { ValorTotal += investimento.ValorTotal; Investimentos.Add(investimento); }