Microsoft.Scripting.Runtime.SharedIO.GetStream C# (CSharp) Метод

GetStream() публичный Метод

public GetStream ( ConsoleStreamType type ) : Stream
type ConsoleStreamType
Результат Stream
        public Stream GetStream(ConsoleStreamType type) {
            switch (type) {
                case ConsoleStreamType.Input: return InputStream;
                case ConsoleStreamType.Output: return OutputStream;
                case ConsoleStreamType.ErrorOutput: return ErrorStream;
            }
            throw Error.InvalidStreamType(type);
        }

Usage Example

Пример #1
0
 public override void Flush()
 {
     _io.GetStream(_type).Flush();
 }