StandardStreamExtensions Class

Provides extension methods for the StandardStream enumeration.

Definition

Namespace: Ookii.CommandLine.Terminal
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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