Agnos.Protocol.ClientUtils.GetProxy C# (CSharp) Method

GetProxy() public method

public GetProxy ( long objref ) : object
objref long
return object
            public object GetProxy(long objref)
            {
                WeakReference weak;
                if (proxies.TryGetValue (objref, out weak)) {
                    if (weak.IsAlive) {
                        return weak.Target;
                    }
                    proxies.Remove (objref);
                }
                return null;
            }