Creates a delimited string from a sequence of values and
a given delimiter.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static string ToDelimitedString( this IEnumerable<int> source, string delimiter )
<ExtensionAttribute> _ Public Shared Function ToDelimitedString ( _ source As IEnumerable(Of Integer), _ delimiter As String _ ) As String
public: [ExtensionAttribute] static String^ ToDelimitedString( IEnumerable<int>^ source, String^ delimiter )
Parameters
- source (IEnumerable<(Of <(<'Int32>)>)>)
- The sequence of items to delimit. Each is converted to a string using the simple ToString() conversion.
- delimiter (String)
- The delimiter to inject between elements. May be null, in which case the executing thread's current culture's list separator is used.
Return Value
[Missing <returns> documentation for "M:MoreLinq.MoreEnumerable.ToDelimitedString(System.Collections.Generic.IEnumerable{System.Int32},System.String)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'Int32>)>)>. 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)