Esempio n. 1
0
 static void Main(string[] args)
 {
     dynamic rFile = new ReadOnlyFile(@"..\..\TextFile1.txt");
     foreach (string line in rFile.Customer)
     {
         Console.WriteLine(line);
     }
     Console.WriteLine("----------------------------");
     foreach (string line in rFile.Customer(StringSearchOption.Contains, true))
     {
         Console.WriteLine(line);
     }
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            dynamic rFile = new ReadOnlyFile(@"..\..\TextFile1.txt");

            foreach (string line in rFile.Customer)
            {
                Console.WriteLine(line);
            }
            Console.WriteLine("----------------------------");
            foreach (string line in rFile.Customer(StringSearchOption.Contains, true))
            {
                Console.WriteLine(line);
            }
        }