Returns a string containing string representations of items in the specified collection,
separated by the specified delimiter.
Namespace:
Endeca.Data.ComponentModelAssembly: Endeca.Data (in Endeca.Data.dll) Version: 2.1.1.0 (2.1.1.620)
Syntax
C# |
---|
public static string Join<T>( IEnumerable<T> values, char delimiter ) where T : IConvertible |
Visual Basic (Declaration) |
---|
Public Shared Function Join(Of T As IConvertible) ( _ values As IEnumerable(Of T), _ delimiter As Char _ ) As String |
Visual C++ |
---|
public: generic<typename T> where T : IConvertible static String^ Join( IEnumerable<T>^ values, wchar_t delimiter ) |
Parameters
- values
- Type: System.Collections.Generic..::.IEnumerable<(Of <(T>)>)
Collection of values to join.
- delimiter
- Type: System..::.Char
Delimiter for the joined string.
Type Parameters
- T
- Type of items in values
Remarks
Items are converted to strings using Convert.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | if values is null. |
System..::.ArgumentException | if delimiter is a whitespace char or the '/' char. |