public static void Call(Event e) { cache.ForEach(r => { if (r.type == e.Type) r.method(e); }); }
/// <summary> /// Execute the event /// </summary> /// <param name="e">The eventargs to pass</param> public virtual void Call(Event e) { muffinbag.ForEach(delegate(Registered r) { if (r.e.GetType() == e.GetType()) r.method(e); }); }