StringBuilderPolyfillExtensionAppendJoinT(StringBuilder, String, IEnumerableT) Method
Concatenates the string representations of the elements in the provided
collection, using the specified separator between each member, then appends the result
to builder.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static StringBuilder AppendJoin<T>(
this StringBuilder builder,
string? separator,
IEnumerable<T> values
)
<ExtensionAttribute>
Public Shared Function AppendJoin(Of T) (
builder As StringBuilder,
separator As String,
values As IEnumerable(Of T)
) As StringBuilder
public:
[ExtensionAttribute]
generic<typename T>
static StringBuilder^ AppendJoin(
StringBuilder^ builder,
String^ separator,
IEnumerable<T>^ values
)
[<ExtensionAttribute>]
static member AppendJoin :
builder : StringBuilder *
separator : string *
values : IEnumerable<'T> -> StringBuilder
- 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 IEnumerableT
- A collection that contains the objects whose string representations
have to be concatenated and appended to builder.
- T
- The type of the members of values.
StringBuilderA reference to
builder after the append operation has
completed.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).