Example #1
0
 private IStdStreamReader Redirect(StreamReader input, TextWriter output)
 {
     var reader = new StdStreamReader(output.Encoding, this);
     reader.DataReceivedEvent += (sender, e) => output.Write(e.Data);
     reader.Start(input);
     return reader;
 }
Example #2
0
        private IStdStreamReader Redirect(StreamReader input, TextWriter output)
        {
            var reader = new StdStreamReader(output.Encoding, this);

            reader.DataReceivedEvent += (sender, e) => output.Write(e.Data);
            reader.Start(input);
            return(reader);
        }