Answers for "list.tostring c#"

C#
13

c# list to string

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

c# list to string

using System.Linq;
string str = list.Aggregate((x, y) => x + ',' + y);
Posted by: Guest on May-22-2020

C# Answers by Framework

Browse Popular Code Answers by Language