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.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
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.
|