/// <summary> /// Destroys object /// </summary> public void Dispose() { if (_disposedFlag.Set()) { if (_jsEngine != null) { _jsEngine.Dispose(); _jsEngine = null; } } }
/// <summary> /// Destroys object /// </summary> public void Dispose() { if (!_disposed) { _disposed = true; if (_jsEngine != null) { _jsEngine.Dispose(); _jsEngine = null; } } }