private void AssertNotDisposed() { if (this.stream == null) { throw new ObjectDisposedException(this.GetType().Name); } }