Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / programming / string

Converting Array or List of data to String => made easy! (C#, MVC3, LINQ)

5.00/5 (2 votes)
18 Jan 2012CPOL 9.1K  
string blah = string.Join(,, cities.Select(c=> c.Name));
C#
string blah = string.Join(",", cities.Select(c=> c.Name));

License

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