示例#1
0
 public void CreateAccount(Account newAccount)
 {
     if (!_accounts.Contains(newAccount))
     {
         _accounts.Add(newAccount);
     }
 }
示例#2
0
 public void RemoveAccount(Account accountToRemove)
 {
     if (_accounts.Contains(accountToRemove))
     {
         _accounts.Remove(accountToRemove);
     }
 }