Click or drag to resize

StringAlgorithmsJoinQuoted Method (Char, Char, IEnumerableString)

Concatenates the members of a collection, using the specified separator between each member, and surrounding each non-null member by the specified quote char.

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static string JoinQuoted(
	char separator,
	char quotechar,
	IEnumerable<string> values
)

Parameters

separator
Type: SystemChar
The string to use as a separator.separator is included in the returned string only if values has more than one element.
quotechar
Type: SystemChar
The quote char is surrounding each non-null value. If a value is containing the quote char, it is escaped by a double quote char
values
Type: System.Collections.GenericIEnumerableString
Values to concatenate

Return Value

Type: String
A string that consists of the members of values surruonded by quotechar and delimited by the separator char. If values has no members, the method returns String.Empty.
See Also