Ejemplo 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);
     }
 }
Ejemplo 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);
            }
        }