EnumerableExtensions.JoinStrings<TItem> Method (IEnumerable<TItem>, String)
Create a single string from a sequenc of items, separated by the provided separator, and with the conversion to string done by the item's ToString() method.
Namespace: Microsoft.Practices.ObjectBuilder2
Assembly: Microsoft.Practices.Unity (in Microsoft.Practices.Unity.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function JoinStrings(Of TItem) ( _
sequence As IEnumerable(Of TItem), _
separator As String _
) As String
public static string JoinStrings<TItem>(
this IEnumerable<TItem> sequence,
string separator
)
[ExtensionAttribute]
public:
generic<typename TItem>
static String^ JoinStrings(
IEnumerable<TItem>^ sequence,
String^ separator
)
JScript does not support generic types or methods.
Parameters
- sequence
Type: System.Collections.Generic.IEnumerable<TItem>
Sequence of items to convert.
- separator
Type: System.String
Separator to place between the items in the string.
Type Parameters
- TItem
Type of items in the sequence.
Return Value
The resulting string.
Remarks
This method does basically the same thing as Join(String, array<String[]), but will work on any sequence of items, not just arrays.