Creates a delimited string from a sequence of values. The
delimiter used depends on the current culture of the executing thread.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static string ToDelimitedString<TSource>( this IEnumerable<TSource> source )
<ExtensionAttribute> _ Public Shared Function ToDelimitedString(Of TSource) ( _ source As IEnumerable(Of TSource) _ ) As String
public: [ExtensionAttribute] generic<typename TSource> static String^ ToDelimitedString( IEnumerable<TSource>^ source )
Generic Template Parameters
- TSource
- Type of element in the source sequence
Parameters
- source (IEnumerable<(Of <(<'TSource>)>)>)
- The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.
Return Value
[Missing <returns> documentation for "M:MoreLinq.MoreEnumerable.ToDelimitedString``1(System.Collections.Generic.IEnumerable{``0})"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'TSource>)>)>. When you use instance method syntax to call this method, omit the first parameter.
Remarks
This operator uses immediate execution and effectively buffers the sequence.
Assembly: MoreLinq (Module: MoreLinq.dll) Version: 1.0.16006.0 (1.0.16006.1845)