예제 #1
0
        static void Main(string[] args)
        {
            StrategyPattern strategy = new StrategyPattern();

            Console.WriteLine();
            ObserverPattern observer = new ObserverPattern();

            Console.WriteLine();
            DecoratorPattern decotrator = new DecoratorPattern();

            Console.WriteLine();
            Console.ReadKey();
        }
예제 #2
0
        public static void DecoratorDemo()
        {
            var dp = new DecoratorPattern();

            dp.DecoratorDemo();
        }