static void Main(string[] args) { Subject subject = new ConcreteSubject("ABC"); subject.AttachRange(new List <Observer> { new ConcreteObserver("o1"), new ConcreteObserver("o2"), new ConcreteObserver("o3") }); subject.SetState("XYZ"); Console.ReadKey(); }