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

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

            target.Request();

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

            t.Request();

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

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

            target.Request();

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

            Console.Read();
        }