コード例 #1
0
 public void ClientCode(Creator creator)
 {
     Console.WriteLine("Hey client! I am not aware of creator's class, but it still works!!" + creator.SomeOperation());
 }
コード例 #2
0
 public void ClientCode(Creator creator)
 {
     Console.WriteLine("Client: I'm not aware of the creator's class, " + "but it still works.\n" + creator.SomeOperation());
 }