Exemplo n.º 1
0
        protected static int GetObjectIdentity(NSJSObject obj)
        {
            if (obj == null)
            {
                return(0);
            }
            IntPtr handle = obj.GetPropertyAndReturnHandle(RUNTIME_OBJECTID_PROPERTYKEY);

            if (handle == null)
            {
                return(0);
            }
            return(new NSJSInt32(handle, obj.VirtualMachine).Value);
        }