Answers for "c# from list to string array"

C#
8

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
5

c# string array to string

string[] test = new string[2];

test[0] = "Hello ";
test[1] = "World!";

string.Join("", test);
Posted by: Guest on April-17-2020

C# Answers by Framework

Browse Popular Code Answers by Language