Microsoft.Scripting.Runtime.SharedIO.GetWriter C# (CSharp) Method

GetWriter() public method

public GetWriter ( ConsoleStreamType type ) : TextWriter
type ConsoleStreamType
return System.IO.TextWriter
        public TextWriter GetWriter(ConsoleStreamType type) {
            switch (type) {
                case ConsoleStreamType.Output: return OutputWriter;
                case ConsoleStreamType.ErrorOutput: return ErrorWriter;
            }
            throw Error.InvalidStreamType(type);
        }