I have a List<int>
that can contain between 1 and n values.
Lets say their are four integers {3,11,108,32}
I need to construct the list of integers into a string like this
(3,11,108,32)
- ie. Comma delimited
I realise this is very trivial, but I am looking for the most efficient solution.
For example, if you only have one item, there shouldn't be a comma in the string, but there should be between all additional items.