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