public void Detach(Shop product) { //For way 1 lets assign detach the observers with subjects list.Remove(product); }
public void Detach2(Shop product) { //For way 2 lets assign detach the observers with subjects OnStatusUpdate -= new StatusUpdate(product.Update); }
public void Attach(Shop product) { //For way 1 lets assign attach the observers with subjects list.Add(product); }