TextWriterPolyfillExtension Class

Extension methods for the TextWriter class, which are used in .NET Framework and .NET Standard 2.0 as polyfills for methods from current .NET versions.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static class TextWriterPolyfillExtension
Inheritance
Object    TextWriterPolyfillExtension

Remarks

The methods of this class should only be used in the extension method syntax to simulate the original methods of the TextWriter class, which exist in more modern frameworks. To match the behavior of the original methods, these extension methods throw a NullReferenceException when called on null.

Methods

Write Writes the text representation of a character span to the text stream.
WriteLine Writes the text representation of a character span to the text stream, followed by NewLine.

See Also