Beispiel #1
0
        static void Main(string[] args)
        {
            Target target = new Adapter();
            target.Request();

            Console.ReadKey();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Target target = new Adapter();

            target.Request();

            Console.Read();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Target t = new Target();

            t.Request();

            t = new Adapter();
            t.Request();

            Console.ReadKey();
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            Target target = new Adapter();

            target.Request();

            Player m = new Forwards("巴蒂尔");
            //适配器
            Player ym = new Translator("姚明");

            Console.Read();
        }