getvaluesafe - eisclimber/ExPresS-XR GitHub Wiki

CsvUtility.GetValueSafe(T,char)

Method in CsvUtility

Summary

Converts any arbitrary value to a safe CSV column entry with the provided separator. This is done by using the DEFAULT_ESCAPE_CHAR to surround the value.

public static string GetValueSafe<T>(T value, char sep = DEFAULT_COLUMN_SEPARATOR)

Parameters

Name Description
T value Values to be converted to a safe CSV column entry.
char sep Separator character (Default: DataGatherer.DEFAULT_COLUMN_SEPARATOR).

Type Parameters

Name Description
T Type to be converted.

Returns

A (if required CSV-escaped) string.

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