LineWrappingTextWriterToString Method

Returns a string representation of the current LineWrappingTextWriter instance.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public override string? ToString()

Return Value

String
If the BaseWriter property is an instance of the StringWriter class, the text written to this LineWrappingTextWriter so far; otherwise, the type name.

Remarks

If the BaseWriter property is an instance of the StringWriter class, this method will return all text written to this LineWrappingTextWriter instance, including text that hasn't been flushed to the underlying StringWriter yet. It does this without flushing the buffer.

See Also