/// <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();
        }
Ejemplo n.º 2
0
        /// <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();
        }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            //// Showing the Adaptee in standalone mode
            Adaptee first = new Adaptee();

            Console.WriteLine("Before the new standard\nPrecise reading: ");
            Console.WriteLine(first.SpecificRequest(5, 3));

            //// What the client really wants
            ITarget second = new Adapter();

            Console.WriteLine("\nMoving to the new tandard");
            Console.WriteLine(second.Request(5));

            // Wait for the user
            Console.Read();
        }