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