Пример #1
0
        public PrintTransactions(string regexPath)
        {
            return;

            using (StreamReader reader = new StreamReader(regexPath)) {
                String line = reader.ReadLine();
                while (line != null)
                {
                    int firstSpace = line.IndexOf(' ');
                    if (firstSpace > 0)
                    {
                        AccountMatch matcher = new AccountMatch();
                        matcher.Expr    = new Regex(line.Substring(0, firstSpace));
                        matcher.Account = line.Substring(firstSpace + 1);
                        accountExprs.Add(matcher);
                        Console.WriteLine(String.Format("Found matcher: {0}, {1}",
                                                        matcher.Expr, matcher.Account));
                    }
                    line = reader.ReadLine();
                }
            }
        }
Пример #2
0
 public PrintTransactions(string regexPath)
 {
     return;
       using (StreamReader reader = new StreamReader(regexPath)) {
     String line = reader.ReadLine();
     while (line != null) {
       int firstSpace = line.IndexOf(' ');
       if (firstSpace > 0) {
     AccountMatch matcher = new AccountMatch();
     matcher.Expr    = new Regex(line.Substring(0, firstSpace));
     matcher.Account = line.Substring(firstSpace + 1);
     accountExprs.Add(matcher);
     Console.WriteLine(String.Format("Found matcher: {0}, {1}",
                     matcher.Expr, matcher.Account));
       }
       line = reader.ReadLine();
     }
       }
 }