C-DEngine 5.105

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

Converts a collection into a string.

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

Syntax


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

Parameters

pList
Type: ICollection<(Of <(<'String>)>)>
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


This function converts a collection of strings to a single string consisting. Individual items in the resulting string are separated from each other by the 'sep' delimiter. Empty input objects are ignored.