An extension method that produce a comman separated values of string out of an IEnumerable<T>.
This would be useful if you want to automatically generate a CSV out of integer, string, or any other primative data type collection or array.
I provided 2 overloads of this method. One of them accepts a separator and the other uses comma "," as default separator.
Also I am using another shortcut extension method for foreach loop.