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.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.3+0b4e3cc14d7870504a77e224d298b921bfc6f2ee
public static class TextWriterPolyfillExtension
<ExtensionAttribute>
Public NotInheritable Class TextWriterPolyfillExtension
[ExtensionAttribute]
public ref class TextWriterPolyfillExtension abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type TextWriterPolyfillExtension = class end
- Inheritance
- Object TextWriterPolyfillExtension
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.
| 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.
|