private void EnsuresNotDisposed() { if (this.disposed) { throw new ObjectDisposedException(this.GetType().Name); } }