joinascsv 2 - eisclimber/ExPresS-XR GitHub Wiki

CsvUtility.JoinAsCsv(IEnumerable,IEnumerable,char)

Method in CsvUtility

Summary

Joins the values into a CSV line using the given separator. Allows csv-escaping value individually. If the lists do not match in lengths, iteration will stop at the shorter one.

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

Parameters

Name Description
System.Collections.Generic.IEnumerable<T> values Values to be converted to a CSV line.
System.Collections.Generic.IEnumerable<bool> safeIndividual A list of denoting if the column should be escaped.
char sep Separator character (Default: DataGatherer.DEFAULT_COLUMN_SEPARATOR).

Type Parameters

Name Description
T Type of values to be converted.

Returns

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

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