StandardStreamExtensionsGetStandardStream(TextReader) Method

Gets the StandardStream associated with a TextReader instance, if that instance is for the standard input stream.

Definition

Namespace: Ookii.CommandLine.Terminal
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public static StandardStream? GetStandardStream(
	this TextReader reader
)

Parameters

reader  TextReader
The TextReader.

Return Value

NullableStandardStream
The StandardStream that reader is reading from, or if it's not reading from the standard input stream.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TextReader. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

See Also