public class EventManager
public void Emit(string eventName)
public void On(string eventName, Action handler)
public void Off(string eventName, Action handler)
public static void Main()
var em=new EventManager();
Action way=()=>Console.WriteLine("this is the way");
Action hello=()=>Console.WriteLine("hello");
em.On("this is the way",way);
Action hello2=()=>Console.WriteLine("hello2");
em.Off("this is the way",way);
em.Emit("this is the way");