static void Main(string[] args)
            {
                // Create adapter and place a request
                Target target = new Adapter();

                target.Request();
                Console.ReadKey();
            }
Esempio n. 2
0
            static void Main()
            {
                // Create adapter and place a request
                Target  target = new Adapter();
                Adapter obj    = new Adapter();

                target.Request();
                obj.Request1();
                Console.ReadKey();
            }
Esempio n. 3
0
        private static void Main(string[] args)
        {
            Console.WriteLine("Adapter design pattern....");

            // Create adapter and place a request
            Target target = new Adapter(); // You can also create a adaptee object and pass it in the constructor of the Adapter object
            target.Request();

            Console.ReadLine();
        }
        /// <summary>

        /// Entry point into console application.

        /// </summary>

        static void Main()
        {
            // Create adapter and place a request

            Target target = new Adapter();

            target.Request();

            // Wait for user

            Console.ReadKey();
        }