public override void Write(byte[] buffer, int offset, int count) { ThrowIfNotCanWrite(); this.stream.Write(buffer, offset, count); }