Esempio n. 1
0
 private void CheckDisposed(string methodName)
 {
     if (this.isDisposed)
     {
         StorageGlobals.TraceFailedCheckDisposed(this, methodName);
         throw new ObjectDisposedException(base.GetType().ToString());
     }
 }
Esempio n. 2
0
 protected void CheckDisposed(string methodName)
 {
     if (this.isDisposed)
     {
         StorageGlobals.TraceFailedCheckDisposed(this, methodName);
         throw new ObjectDisposedException(this.ToString());
     }
 }
Esempio n. 3
0
 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()");
     }
 }
Esempio n. 4
0
 private ObjectAccessGuard CheckDisposed(string methodName)
 {
     if (base.IsDisposed)
     {
         StorageGlobals.TraceFailedCheckDisposed(this, methodName);
         throw new ObjectDisposedException(this.ToString());
     }
     return(ObjectAccessGuard.Create(this.threadTracker, methodName));
 }
Esempio n. 5
0
 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");
     }
 }
Esempio n. 6
0
 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.");
     }
 }