示例#1
0
        public void Demonstrate()
        {
            var antipatern = new Composite_AntiPattern();
            var pattern = new Composite_Pattern();

            antipatern.Demonstrate();

            Console.WriteLine("now the pattern");
            pattern.Demonstrate();
        }
示例#2
0
        public void Demonstrate()
        {
            var antipatern = new Composite_AntiPattern();
            var pattern    = new Composite_Pattern();

            antipatern.Demonstrate();

            Console.WriteLine("now the pattern");
            pattern.Demonstrate();
        }