Answers for "append string array c#"

C#
0

c# add string to array

string[] MyArray = new string[] { "A", "B" };
MyArray = new List<string>(MyArray) { "C" }.ToArray();
//MyArray = ["A", "B", "C"]

raadgames :)
Posted by: Guest on June-11-2021
0

c# how to append in array

List<string> ls = new List<string>();
ls.Add("Hello");
Posted by: Guest on September-27-2020

C# Answers by Framework

Browse Popular Code Answers by Language