LineWrappingTextWriterToString Method

Returns a string representation of the current LineWrappingTextWriter instance.

Definition

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