Interlocked.Exchange(ref _instance, null)?.Dispose(disposing); // interlocked to avoid shared state problems from erroneous double/concurrent disposes public void Disconnect() { CheckDisconnectOperations(); State = PipeState.Disconnected; InternalHandle.Dispose(); InitializeHandle(null, false, false); }
public bool hasProperty(string methodName) { InternalHandle h = engine.GlobalObject.GetProperty(methodName); if (h.IsError) { return(false); } h.Dispose(); return(true); }
public void Dispose() { _Value.Dispose(); }
void IFinalizable.DoFinalize() { _Value.Dispose(); }