Click here to Skip to main content
Click here to Skip to main content
Alternative Tip
Go to top

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

, 18 Jan 2012
Rate this:
Please Sign up or sign in to vote.
string blah = string.Join(",", cities.Select(c=> c.Name));
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)

Share

About the Author

Namlak
Web Developer
United States United States
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 18 Jan 2012
Article Copyright 2012 by Namlak
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid