I want to write a function that format int and decimal differently into string
int
decimal
I have this code:
and I want to rewrite it to generi
Alternatively you could always do:
public static string FormatWithCommaSeparator(T[] items) { var itemArray = items.Select(i => i.ToString()); return string.Join(", ", itemArray); }