I have a DataTable that returns
IDs ,1 ,2 ,3 ,4 ,5 ,100 ,101
I want to convert this to single string value, i.e:
,1,2,3,4,5,100
I had a similar issue with general Array type and i solved it as follows
Array
string GetMembersAsString(Array array) { return string.Join(",", array.OfType()); }
Note that call OfType() is mandatory.
OfType()