Beispiel #1
0
        static void Main()
        {
            var first = new Adaptee ();
            Console.Write ("Before the new standard: ");
            first.ExecuteClassSpecificAction ();

            ITarget second = new Adapter ();
            Console.WriteLine ("\nMoving to the new standard");
            second.ExecuteInterfaceSpecificAction () ;
        }
Beispiel #2
0
        static void Main()
        {
            var first = new Adaptee();

            Console.Write("Before the new standard: ");
            first.ExecuteClassSpecificAction();

            ITarget second = new Adapter();

            Console.WriteLine("\nMoving to the new standard");
            second.ExecuteInterfaceSpecificAction();
        }