private static void ProcessInvoke(VirtualProxyInvoker invoke) { PropertyHooker hooker = null; lock (_syncobj) { hooker = Get(invoke.DeclaringType); } if (hooker != null) { hooker.Handle(invoke); } }
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); } }