StandardStreamExtensions Class

Provides extension methods for the StandardStream enumeration.

Definition

Namespace: Ookii.CommandLine.Terminal
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
C#
public static class StandardStreamExtensions
Inheritance
Object    StandardStreamExtensions

Methods

GetStandardStream(TextReader) Gets the StandardStream associated with a TextReader instance, if that instance is for the standard input stream.
GetStandardStream(TextWriter) Gets the StandardStream associated with a TextWriter instance, if that instance is for either the standard output or error stream.
GetWriter Gets the TextWriter for either StandardStreamOutput or StandardStreamError.
IsRedirected Gets a value that indicates whether the specified standard stream is redirected.
OpenStream Creates a Stream instance for a StandardStream.

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

See Also