Example #1
0
 private static MapResolveEventArgs InternalOnEvent(MapResolveEventHandler handler, object sender, Type expectType)
 {
     if(handler != null)
     {
         var e = new MapResolveEventArgs(expectType);
         handler(sender, e);
         if(e.Callback == null) return null;
         return e;
     }
     return null;
 }
Example #2
0
 private static MapResolveEventArgs InternalOnEvent(MapResolveEventHandler handler, object sender, Type expectType)
 {
     if (handler != null)
     {
         var e = new MapResolveEventArgs(expectType);
         handler(sender, e);
         if (e.Callback == null)
         {
             return(null);
         }
         return(e);
     }
     return(null);
 }