static void Main() { Publisher pub = new Publisher(); Handler h = new Handler(pub); //Method which raises event pub.Start(2, 10); }
public Handler(Publisher pub) { pub.RaiseCustomEvent += HandleCustomEvent; }