LineWrappingTextWriterForStandardStream Method

Gets a LineWrappingTextWriter that writes to the specified standard stream.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
C#
public static LineWrappingTextWriter ForStandardStream(
	StandardStream stream
)

Parameters

stream  StandardStream
The StandardStream to write to.

Return Value

LineWrappingTextWriter
A LineWrappingTextWriter that writes to either ConsoleOut or ConsoleError.

Exceptions

See Also