コード例 #1
0
 public bool WithdrawFromDbUsingOut(double amount)
 {
     if (m_balance >= amount)
     {
         //m_balance -= amount;
         if (m_bankDb.WithdrawWithOut(m_accountInfo.ID, amount, out m_balance))
         {
             return(true);
         }
     }
     else
     {
         throw new ArgumentException(amount.ToString(), "Withdrawal exceeds balance!");
     }
     return(false);
 }