public static void Broadcast(string eventType, ListenerType mode) { ListenerInternal.OnBroadcasting(eventType, mode); Delegate d; if (eventTable.TryGetValue(eventType, out d)) { Callback callback = d as Callback; if (callback != null) { callback(); } else { throw ListenerInternal.CreateBroadcastSignatureException(eventType); } } }