Пример #1
0
        static void Main(string[] args)
        {
            Target target = new Adapter();

            target.Request();

            Console.ReadLine();
        }
Пример #2
0
        static void RunAdapter()
        {
            // 适配器为中转类 用于调节用户使用接口 和目标接口
            // Create adapter and place a request
            Target target = new Adapter();

            target.Request();
        }