Breyta

Deila með


StringBuilder.AppendJoin Method

Definition

Overloads

AppendJoin(String, ReadOnlySpan<Object>)

Concatenates the string representations of the elements in the provided span 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(String, ReadOnlySpan<String>)

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

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(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(Char, ReadOnlySpan<String>)

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

AppendJoin(Char, ReadOnlySpan<Object>)

Concatenates the string representations of the elements in the provided span of objects, using the specified char separator between each member, 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<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, ReadOnlySpan<Object>)

Concatenates the string representations of the elements in the provided span 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, ReadOnlySpan<System::Object ^> values);
public System.Text.StringBuilder AppendJoin (string? separator, scoped ReadOnlySpan<object?> values);
member this.AppendJoin : string * ReadOnlySpan<obj> -> System.Text.StringBuilder
Public Function AppendJoin (separator As String, values As ReadOnlySpan(Of 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
ReadOnlySpan<Object>

A span 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.

Applies to

AppendJoin(String, String[])

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

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);
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.

Applies to

AppendJoin(String, ReadOnlySpan<String>)

Concatenates the strings of the provided span, 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, ReadOnlySpan<System::String ^> values);
public System.Text.StringBuilder AppendJoin (string? separator, scoped ReadOnlySpan<string?> values);
member this.AppendJoin : string * ReadOnlySpan<string> -> System.Text.StringBuilder
Public Function AppendJoin (separator As String, values As ReadOnlySpan(Of 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
ReadOnlySpan<String>

A span 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.

Applies to

AppendJoin(String, Object[])

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

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);
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.

Applies to

AppendJoin(Char, String[])

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

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);
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.

Applies to

AppendJoin(Char, ReadOnlySpan<String>)

Concatenates the strings of the provided span, 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, ReadOnlySpan<System::String ^> values);
public System.Text.StringBuilder AppendJoin (char separator, scoped ReadOnlySpan<string?> values);
member this.AppendJoin : char * ReadOnlySpan<string> -> System.Text.StringBuilder
Public Function AppendJoin (separator As Char, values As ReadOnlySpan(Of 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
ReadOnlySpan<String>

A span 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.

Applies to

AppendJoin(Char, ReadOnlySpan<Object>)

Concatenates the string representations of the elements in the provided span 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, ReadOnlySpan<System::Object ^> values);
public System.Text.StringBuilder AppendJoin (char separator, scoped ReadOnlySpan<object?> values);
member this.AppendJoin : char * ReadOnlySpan<obj> -> System.Text.StringBuilder
Public Function AppendJoin (separator As Char, values As ReadOnlySpan(Of 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
ReadOnlySpan<Object>

A span 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.

Applies to

AppendJoin(Char, Object[])

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

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);
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.

Applies to

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

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

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.

Applies to

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

Source:
StringBuilder.cs
Source:
StringBuilder.cs
Source:
StringBuilder.cs

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);
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