Click here to Skip to main content
15,893,668 members
Articles / General Programming / String

String concatenation using LINQ to create a CSV/PSV string

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
29 Jun 2011CPOL 6.3K  
The idea was good, but I think we could probably do something like below:public static string UsingStringJoin(IEnumerable sList, string separator){ return sList.Any() ? string.Join(separator, sList.ToArray()) : string.Empty;}public static string...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Australia Australia

Comments and Discussions