コード例 #1
0
 public void Operation(Facade facade)
 {
     facade.Operation();
 }
コード例 #2
0
 public static void ClientCode(Facade fasade)
 {
     Console.WriteLine(fasade.Operation());
 }
コード例 #3
0
 // The program code works with complex subsystems through a simple
 // interface provided by the Facade. When a facade manages the lifecycle
 // of the subsystem, the client might not even know about the existence
 // of the subsystem. This approach lets you keep the complexity under
 // control.
 public static void ProgramCode(Facade facade)
 {
     Console.Write(facade.Operation());
 }