コード例 #1
0
 public DecoratorA(Icomponent c)
 {
     this.component = c;
 }
コード例 #2
0
 private static void Display(string v, Icomponent c)
 {
     Console.WriteLine(v + c.Operation());
 }
コード例 #3
0
 public string AddedState = "Past the coffe shop"; // What should this called?
 public DecoratorB(Icomponent c) => this.component = c;