Пример #1
0
        private static void Main()
        {
            ITarget adapter = new VendorAdapter();

            foreach (var product in adapter.GetProducts())
            {
                Console.WriteLine(product);
            }
        }
Пример #2
0
 static void Main(string[] args)
 {
     ITarget adapter = new VendorAdapter();
     foreach (string product in adapter.GetProducts())
     {
         Console.WriteLine(product);
     }
     Console.ReadLine();
 }
        static void Main(string[] args)
        {
            ITarget adapter = new VendorAdapter();

            foreach (string product in adapter.GetProducts())
            {
                Console.WriteLine(product);
            }

            Console.ReadLine();
        }