"Use {collectionName}.ToString({seperator}) instead of {string.Join}({seperator}, {collectionName})"
The string.Tostring("separator")
places the separator between every element of the collection in the returned string. The separator is not added to the start or end of the result. It is just like string.join()
but briefer and more readable.
var result = string.Join(",", myCollection);
should be 🡻
var result = myCollection.ToString(",");