public void CheckIfDisposed() { if (this.IsDisposed) throw new ObjectDisposedException(this.GetType().Name); }