Method ToDelimitedString
View SourceToDelimitedString<TSource>(IEnumerable<TSource>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString<TSource>(this IEnumerable<TSource> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TSource> | source | The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion. |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Type Parameters
Name | Description |
---|---|
TSource | Type of element in the source sequence |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<bool>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<bool> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<bool> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<byte>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<byte> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<byte> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<char>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<char> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<char> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<decimal>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<decimal> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<decimal> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<double>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<double> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<double> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<short>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<short> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<short> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<int>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<int> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<int> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<long>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<long> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<long> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<sbyte>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<sbyte> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<sbyte> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<float>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<float> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<float> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<string>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<string> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<string> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<ushort>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<ushort> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ushort> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<uint>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<uint> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<uint> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ToDelimitedString(IEnumerable<ulong>, string)
Creates a delimited string from a sequence of values and a given delimiter.
Declaration
public static string ToDelimitedString(this IEnumerable<ulong> source, string delimiter)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ulong> | source | The sequence of items to delimit. Each is converted to a string using the simple |
string | delimiter | The delimiter to inject between elements. |
Returns
Type | Description |
---|---|
string | A string that consists of the elements in |
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|