Answers for "c# list of simple objects to single string"

C#
0

c# object list to joined string

using System.Linq

string.Join(",", people.Select(x => x.surname))
Posted by: Guest on July-20-2020
0

how to convert list of string to single string in c#

string Something = string.Join(",", MyList);

List<string> names = new List<string>() { "John", "Anna", "Monica" };
var result = String.Join(", ", names.ToArray());
Posted by: Guest on October-08-2020

Code answers related to "c# list of simple objects to single string"

C# Answers by Framework

Browse Popular Code Answers by Language