示例#1
0
 public List<Account> ReadAccountNumbers(string fileName)
 {
     var accounts = new List<Account>();
     var textEntries = GetFileTextEntries(fileName);
     var parser = new DigitParser();
     foreach (var entry in textEntries)
     {
         accounts.Add(parser.GetAccount(entry));
     }
     return accounts;
 }
示例#2
0
        public List <Account> ReadAccountNumbers(string fileName)
        {
            var accounts    = new List <Account>();
            var textEntries = GetFileTextEntries(fileName);
            var parser      = new DigitParser();

            foreach (var entry in textEntries)
            {
                accounts.Add(parser.GetAccount(entry));
            }
            return(accounts);
        }
        private Digit GetDigit(string digitCharacters)
        {
            var parser = new DigitParser();

            return(parser.GetDigit(digitCharacters));
        }
 private Digit GetDigit(string digitCharacters)
 {
     var parser = new DigitParser();
     return parser.GetDigit(digitCharacters);
 }