private void CheckDisposed(string methodName) { if (this.isDisposed) { StorageGlobals.TraceFailedCheckDisposed(this, methodName); throw new ObjectDisposedException(base.GetType().ToString()); } }
protected void CheckDisposed(string methodName) { if (this.isDisposed) { StorageGlobals.TraceFailedCheckDisposed(this, methodName); throw new ObjectDisposedException(this.ToString()); } }
private void CheckAbandoned(string methodName) { if (this.isAbandoned) { StorageGlobals.TraceFailedCheckDisposed(this, methodName); throw new InvalidOperationException("This Category object was invalidated by the last call to MasterCategoryList.Save()"); } }
private ObjectAccessGuard CheckDisposed(string methodName) { if (base.IsDisposed) { StorageGlobals.TraceFailedCheckDisposed(this, methodName); throw new ObjectDisposedException(this.ToString()); } return(ObjectAccessGuard.Create(this.threadTracker, methodName)); }
protected virtual void CheckDisposed(string methodName) { if (this.isDisposed) { StorageGlobals.TraceFailedCheckDisposed(this, methodName); throw new ObjectDisposedException(base.GetType().ToString()); } if (this.coreObject == null) { throw new InvalidOperationException("The core object is null"); } }
protected virtual void CheckDisposed(string methodName = null) { if (this.isDisposed) { if (methodName == null) { methodName = new StackTrace(1).GetFrame(0).GetMethod().Name; } StorageGlobals.TraceFailedCheckDisposed(this, methodName); throw new ObjectDisposedException(base.GetType().FullName + " has already been disposed."); } }