public void Dispose() { IntPtr ks = Interlocked.Exchange(ref this.engine, IntPtr.Zero); if (ks != IntPtr.Zero) { int num = (int)KeystoneImports.Close(ks); } GC.SuppressFinalize((object)this); }
/// <summary> /// Release the engine. /// </summary> public void Dispose() { var currentEngine = Interlocked.Exchange(ref engine, IntPtr.Zero); if (currentEngine != IntPtr.Zero) { KeystoneImports.Close(currentEngine); } GC.SuppressFinalize(this); }