Observer design Pattern
When many objects needs to recieve updates when there is a change in another objects, Benifit = Loosely coupled – publishers need not be aware of the type of subscriber (observer) Flaws The publishers( subject ) may send updates that dont matter to the subscriber (observer) using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; // Liskov Substitution Principle namespace ManualResetEvent_ { interface IPublisher { void register(Subscriber subscriber); void unregister(Subscriber subscriber); void notify(); } class publisher_ : IPublisher { private int no_of_items; private List<Subscriber> s...