コード例 #1
0
        public static void Main()
        {
            ConcreteComponent comp = new ConcreteComponent();
            Decorator         deco = new ConcreteDecorator1(new ConcreteDecorator2(comp));

            deco.Operation();
        }
コード例 #2
0
 public static void Main()
 {
     ConcreteComponent comp = new ConcreteComponent();
     Decorator deco = new ConcreteDecorator1(new ConcreteDecorator2(comp));
     deco.Operation();
 }