StringBuilderPolyfillExtension Class

Extension methods for the StringBuilder 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 StringBuilderPolyfillExtension
Inheritance
Object    StringBuilderPolyfillExtension

Remarks

The methods of this class should only be used in the extension method syntax to simulate the original methods of the StringBuilder 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

Append(StringBuilder, ReadOnlySpanChar)Appends the string representation of a specified read-only character span to a StringBuilder.
Append(StringBuilder, StringBuilder, Int32, Int32)Appends a copy of a sequence of Unicode characters that comes from a StringBuilder to the existing content of builder.
AppendJoin(StringBuilder, Char, Object)Concatenates the string representations of the elements in the provided array of objects, using the specified separator character between each member, then appends the result to builder.
AppendJoin(StringBuilder, Char, String)Concatenates the Strings of the provided array, using the specified Char separator between each String, then appends the result to builder.
AppendJoin(StringBuilder, String, Object)Concatenates the string representations of the elements in the provided array of objects, using the specified separator between each member, then appends the result to builder.
AppendJoin(StringBuilder, String, String)Concatenates the Strings in the provided array of objects, using the specified separator between each member, then appends the result to builder.
AppendJoinT(StringBuilder, Char, IEnumerableT)Concatenates the string representations of the elements in the provided collection, using the specified separator character between each member, then appends the result to builder.
AppendJoinT(StringBuilder, String, IEnumerableT)Concatenates the string representations of the elements in the provided collection, using the specified separator between each member, then appends the result to builder.
InsertInserts the content of a read-only character span at the specified index position into builder.

See Also