I used a built in function to create comma separated string using List easily.
(It is not split and join but new function) I’m not able to recollect or find it. If some one knows about it and uses it please post a link to that. Framework – .net 2.0
(It is not Join or split – I know about this, .net has new built in function to create CSV format)
Check Jacob G Answer below for what I was looking for let me know your thoughts on it compared to join 😉
And whoever gave me -ve rep need to keep some patience and not hurry
This might be what you’re thinking of… You need to reference the System.Configuration dll and import the appropriate namespace.
By the way, I found this class by opening up the documentation and typing the word “comma” in the index.
EDIT
In response to your new question – Assuming that your List is already constructed, String.Join is going to be more performant. This collection just uses a StringBuilder. String.Join has a number of low-level optimization that will make it faster.
(also, not terribly cool to take away the “correct answer” after you change to a new question)