public DuplexStream(StreamReader reader, StreamWriter writer) { Debug.Assert(reader != null || writer != null); _reader = reader; _writer = writer; }