Example #1
0
 public static void Call(Event e)
 {
     cache.ForEach(r =>
     {
         if (r.type == e.Type)
             r.method(e);
     });
 }
Example #2
0
 /// <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);
     });
 }