ToCommaSeparatedString() Extension Method for IEnumerable Collection in C#
Recently I have been using this extension method which would provide the comma separated string from a string collection. Thought it might be useful for sharing.
Use the namespace for using the extension methods.
The below image shows that the Tags property is of type IEnumerable<string>.
The output is as follows.
Hope this post is useful.
Like Method Of Tried in Facebook.