Beispiel #1
0
        private static void ProcessInvoke(VirtualProxyInvoker invoke)
        {
            PropertyHooker hooker = null;

            lock (_syncobj)
            {
                hooker = Get(invoke.DeclaringType);
            }
            if (hooker != null)
            {
                hooker.Handle(invoke);
            }
        }
Beispiel #2
0
 public static PropertyHooker From(Type type)
 {
     if (type == null)
     {
         return(null);
     }
     lock (_syncobj)
     {
         PropertyHooker hooker = Get(type);
         if (hooker == null)
         {
             hooker = new PropertyHooker(type);
             _hooks.Add(type, hooker);
         }
         return(hooker);
     }
 }