private void SetupReader() { if (this.reader != null) { this.reader.Dispose(); } this.reader = new SmtpStreamReader(this.stream, this.fallbackEncoding, true); }
private void SetupReaderAndWriter() { if (this.reader != null) { this.reader.Dispose(); } this.reader = new SmtpStreamReader(this.stream, this.fallbackEncoding, true); if (this.writer != null) { this.writer.Dispose(); } this.writer = new SmtpStreamWriter(this.stream, true) { AutoFlush = true }; }