Espresso.NativeV8JsInterOp.UnRegisterNativePart C# (CSharp) Method

UnRegisterNativePart() public static method

public static UnRegisterNativePart ( INativeRef proxyObj ) : void
proxyObj INativeRef
return void
        public static void UnRegisterNativePart(INativeRef proxyObj)
        {
            if (proxyObj.HasNativeSide)
            {
                ReleaseWrapper(proxyObj.UnmanagedPtr);
                proxyObj.SetUnmanagedPtr(IntPtr.Zero);
            }
        }
        //public static int GetManagedIndexFromNativePart(INativeRef proxyObj)

Usage Example

示例#1
0
        public void Dispose()
        {
            int j = nativeRefList.Count;

            for (int i = nativeRefList.Count - 1; i > -1; --i)
            {
                NativeV8JsInterOp.UnRegisterNativePart(nativeRefList[i]);
            }
            nativeRefList.Clear();
        }