protected DelegatingStream(Stream stream) { if (stream == null) { throw new ArgumentNullException("stream"); } this.stream = stream; }