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