StringBuilder.AppendJoin Method

Definition

Overloads

AppendJoin(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 the current instance of the string builder.

AppendJoin(String, String[])

Concatenates the strings of the provided array, using the specified separator between each string, then appends the result to the current instance of the string builder.

AppendJoin(Char, Object[])

Concatenates the string representations of the elements in the provided array of objects, using the specified char separator between each member, then appends the result to the current instance of the string builder.

AppendJoin(Char, String[])

Concatenates the strings of the provided array, using the specified char separator between each string, then appends the result to the current instance of the string builder.

AppendJoin<T>(Char, IEnumerable<T>)

Concatenates and appends the members of a collection, using the specified char separator between each member.

AppendJoin<T>(String, IEnumerable<T>)

Concatenates and appends the members of a collection, using the specified separator between each member.

AppendJoin(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 the current instance of the string builder.

public:
 System::Text::StringBuilder ^ AppendJoin(System::String ^ separator, ... cli::array <System::Object ^> ^ values);
public System.Text.StringBuilder AppendJoin (string separator, params object[] values);
member this.AppendJoin : string * obj[] -> System.Text.StringBuilder
Public Function AppendJoin (separator As String, ParamArray values As Object()) As StringBuilder

Parameters

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 strings to concatenate and append to the current instance of the string builder.

Returns

A reference to this instance after the append operation has completed.

AppendJoin(String, String[])

Concatenates the strings of the provided array, using the specified separator between each string, then appends the result to the current instance of the string builder.

public:
 System::Text::StringBuilder ^ AppendJoin(System::String ^ separator, ... cli::array <System::String ^> ^ values);
public System.Text.StringBuilder AppendJoin (string separator, params string[] values);
member this.AppendJoin : string * string[] -> System.Text.StringBuilder
Public Function AppendJoin (separator As String, ParamArray values As String()) As StringBuilder

Parameters

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
String[]

An array that contains the strings to concatenate and append to the current instance of the string builder.

Returns

A reference to this instance after the append operation has completed.

AppendJoin(Char, Object[])

Concatenates the string representations of the elements in the provided array of objects, using the specified char separator between each member, then appends the result to the current instance of the string builder.

public:
 System::Text::StringBuilder ^ AppendJoin(char separator, ... cli::array <System::Object ^> ^ values);
public System.Text.StringBuilder AppendJoin (char separator, params object[] values);
member this.AppendJoin : char * obj[] -> System.Text.StringBuilder
Public Function AppendJoin (separator As Char, ParamArray values As Object()) As StringBuilder

Parameters

separator
Char

The character 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 strings to concatenate and append to the current instance of the string builder.

Returns

A reference to this instance after the append operation has completed.

AppendJoin(Char, String[])

Concatenates the strings of the provided array, using the specified char separator between each string, then appends the result to the current instance of the string builder.

public:
 System::Text::StringBuilder ^ AppendJoin(char separator, ... cli::array <System::String ^> ^ values);
public System.Text.StringBuilder AppendJoin (char separator, params string[] values);
member this.AppendJoin : char * string[] -> System.Text.StringBuilder
Public Function AppendJoin (separator As Char, ParamArray values As String()) As StringBuilder

Parameters

separator
Char

The character to use as a separator. separator is included in the joined strings only if values has more than one element.

values
String[]

An array that contains the strings to concatenate and append to the current instance of the string builder.

Returns

A reference to this instance after the append operation has completed.

AppendJoin<T>(Char, IEnumerable<T>)

Concatenates and appends the members of a collection, using the specified char separator between each member.

public:
generic <typename T>
 System::Text::StringBuilder ^ AppendJoin(char separator, System::Collections::Generic::IEnumerable<T> ^ values);
public System.Text.StringBuilder AppendJoin<T> (char separator, System.Collections.Generic.IEnumerable<T> values);
member this.AppendJoin : char * seq<'T> -> System.Text.StringBuilder
Public Function AppendJoin(Of T) (separator As Char, values As IEnumerable(Of T)) As StringBuilder

Type Parameters

T

The type of the members of values.

Parameters

separator
Char

The character to use as a separator. separator is included in the concatenated and appended strings only if values has more than one element.

values
IEnumerable<T>

A collection that contains the objects to concatenate and append to the current instance of the string builder.

Returns

A reference to this instance after the append operation has completed.

AppendJoin<T>(String, IEnumerable<T>)

Concatenates and appends the members of a collection, using the specified separator between each member.

public:
generic <typename T>
 System::Text::StringBuilder ^ AppendJoin(System::String ^ separator, System::Collections::Generic::IEnumerable<T> ^ values);
public System.Text.StringBuilder AppendJoin<T> (string separator, System.Collections.Generic.IEnumerable<T> values);
member this.AppendJoin : string * seq<'T> -> System.Text.StringBuilder
Public Function AppendJoin(Of T) (separator As String, values As IEnumerable(Of T)) As StringBuilder

Type Parameters

T

The type of the members of values.

Parameters

separator
String

The string to use as a separator. separator is included in the concatenated and appended strings only if values has more than one element.

values
IEnumerable<T>

A collection that contains the objects to concatenate and append to the current instance of the string builder.

Returns

A reference to this instance after the append operation has completed.

Applies to