StringBuilderPolyfillExtensionAppendJoin(StringBuilder, String, Object) Method

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.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static StringBuilder AppendJoin(
	this StringBuilder builder,
	string? separator,
	params Object?[] values
)

Parameters

builder  StringBuilder
The StringBuilder to which the characters are appended.
separator  String
The string to use as a separator. separator is included in the joined strings only if values has more than one element.
values  Object
An array that contains the objects whose string representations have to be concatenated and appended to builder.

Return Value

StringBuilder
A reference to builder after the append operation has completed.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type StringBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

NullReferenceExceptionbuilder is null.
ArgumentNullExceptionvalues is null.

See Also