示例#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;
 }
示例#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);
 }