private void EnsureNotClosed() { if (_stream == null) throw new ObjectDisposedException(null, SR.ObjectDisposed_StreamClosed); }