/// <summary> /// Releases all resources used by the V8 runtime. /// </summary> /// <remarks> /// Call <c>Dispose()</c> when you are finished using the V8 runtime. <c>Dispose()</c> /// leaves the V8 runtime in an unusable state. After calling <c>Dispose()</c>, you must /// release all references to the V8 runtime so the garbage collector can reclaim the /// memory that the V8 runtime was occupying. /// </remarks> public void Dispose() { if (disposedFlag.Set()) { proxy.Dispose(); } }
/// <summary> /// Releases all resources used by the V8 runtime. /// </summary> /// <remarks> /// Call <c>Dispose()</c> when you are finished using the V8 runtime. <c>Dispose()</c> /// leaves the V8 runtime in an unusable state. After calling <c>Dispose()</c>, you must /// release all references to the V8 runtime so the garbage collector can reclaim the /// memory that the V8 runtime was occupying. /// </remarks> public void Dispose() { if (!disposed) { proxy.Dispose(); disposed = true; } }