Friday, November 6, 2015

Generate a comma separated string from an IEnumerable object

string.join(",", Contacts.Select(x=>x.Name); //Name is a property of an object(Contact) in the list of Contacts

No comments:

Post a Comment