Convert List<int> to delimited string list
UPDATED to use List<int>
instead of List<string>
Use string.Join
:
List<int> data = ..;
var result = string.Join(";", data); // (.NET 4.0+)
var result = string.Join(";", data.Select(x => x.ToString()).ToArray()); // (.NET 3.5)
string.Join(";", myList.ToArray());
Just use the join
string combinedString = String.Join(";", arrayName);