Beispiel #1
0
        public static void Test()
        {
            var context = new ConcreteStateA();

            // state a
            context.Operation();
            // state b
            context.Operation();
            // state a
        }