Beispiel #1
0
        public static void BaseSample()
        {
            ElementContainer container = new ElementContainer();

            container.Attach(new ElementA());
            container.Attach(new ElementB());
            container.Accept(new VisitorFirst());
            container.Accept(new VisitorSecond());

            Console.ReadKey();
        }