Skip to content

M_CSharpx_EnumerableExtensions_ToDelimitedString__1_1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

EnumerableExtensions.ToDelimitedString(TSource) Method (IEnumerable(TSource), String)

Creates a delimited string from a sequence of values and a given delimiter.

Namespace: CSharpx
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static string ToDelimitedString<TSource>(
	this IEnumerable<TSource> source,
	string delimiter
)

VB

<ExtensionAttribute>
Public Shared Function ToDelimitedString(Of TSource) ( 
	source As IEnumerable(Of TSource),
	delimiter As String
) As String

C++

public:
[ExtensionAttribute]
generic<typename TSource>
static String^ ToDelimitedString(
	IEnumerable<TSource>^ source, 
	String^ delimiter
)

F#

[<ExtensionAttribute>]
static member ToDelimitedString : 
        source : IEnumerable<'TSource> * 
        delimiter : string -> string 

Parameters

 

source
Type: System.Collections.Generic.IEnumerable(TSource)
delimiter
Type: System.String

Type Parameters

 

TSource

Return Value

Type: String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(TSource). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

EnumerableExtensions Class
ToDelimitedString Overload
CSharpx Namespace

Clone this wiki locally