public string GenerateKeyUpper(params string[] columns) { if (columns.Length == 1) { return(_values.TryGetValue(columns[0], out var value) ? DefaultValueFormatter.Format(value).ToUpperInvariant() : null); } return(string.Join("\0", columns.Select(c => FormatToString(c, CultureInfo.InvariantCulture) ?? "-")).ToUpperInvariant()); }
public string FormatToString(string column, IFormatProvider formatProvider = null) { var value = GetValueImpl(column); return(DefaultValueFormatter.Format(value)); }