StringAlgorithmsJoinQuoted(Char, Char, IEnumerableString) Method
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.GenericAssembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
public static string JoinQuoted(
char separator,
char quotechar,
IEnumerable<string> values
)
- separator Char
- The string to use as a separator.separator is included in the returned string only if values has more than one element.
- quotechar Char
- 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 IEnumerableString
- Values to concatenate
StringA 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.