C-DEngine 5.105

TheCommonUtils..::..CListToString<(Of <(<'T>)>)> Method (ICollection<(Of <(<'T>)>)>, String)

Converts a collection into a string.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static string CListToString<T>(
	ICollection<T> pList,
	string Sep
)
Public Shared Function CListToString(Of T) ( _
	pList As ICollection(Of T), _
	Sep As String _
) As String
public:
generic<typename T>
static String^ CListToString(
	ICollection<T>^ pList, 
	String^ Sep
)

Type Parameters

T
Generic Type parameter of input collection.

Parameters

pList
Type: ICollection<(Of <(<'T>)>)>
Reference to a string collection.
Sep
Type: String
A string to insert between each item.

Return Value

A concatenated string with delimiter 'sep' between each part.

Remarks


Converts a collection of objects of type T to a single string containing each of the input objects separated by the 'sep' delimiter. Empty input objects are ignored.