public override int Read(byte[] buffer, int offset, int count) { if (output) { throw new InvalidOperationException("this stream is opened for writing only"); } return transport.Read (buffer, offset, count); }