Exemplo n.º 1
0
        static void Main(string[] args)
        {
            #region 结构实现
            Structural.Facade facade = new Structural.Facade();

            facade.MethodA();
            facade.MethodB();
            #endregion

            Console.WriteLine("******************************");

            #region 实践应用
            #endregion

            Console.ReadKey();
        }
Exemplo n.º 2
0
 internal void ClientCode(Facade facade)
 {
     Console.WriteLine(facade.Operation());
 }