示例#1
0
        public static Bank Load(TextReader textIn)
        {
            string bankName = textIn.ReadLine();
            Bank   result   = new Bank(bankName);

            newAccountNumber = int.Parse(textIn.ReadLine());
            int numberOfAccounts = int.Parse(textIn.ReadLine());

            for (int i = 0; i < numberOfAccounts; i++)
            {
                Account a = Account.Load(textIn);
                result.bankAccounts.Add(a);
            }
            return(result);
        }