joinascsv 1 - eisclimber/ExPresS-XR GitHub Wiki

CsvUtility.JoinAsCsv(IEnumerable,char,bool)

Method in CsvUtility

Summary

Joins the values into a CSV line using the given separator and csv-escaping (all) values if desired.

public static string JoinAsCsv<T>(IEnumerable<T> values, char sep = DEFAULT_COLUMN_SEPARATOR, bool safe = true)

Parameters

Name Description
System.Collections.Generic.IEnumerable<T> values Values to be converted to a CSV line.
char sep Separator character (Default: DataGatherer.DEFAULT_COLUMN_SEPARATOR).
bool safe If true escapes all values using the DEFAULT_ESCAPE_CHARACTER (and replace it in the string).

Returns

A (csv)-string representation of the values-array.

⚠️ **GitHub.com Fallback** ⚠️