Answers for "c# add a string to an array"

C#
13

c# add to array

var Freds = new [] { "Fred", "Freddy" };
Freds = Freds.Concat(new [] { "Frederick" }).ToArray();
Posted by: Guest on May-01-2020
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

Code answers related to "c# add a string to an array"

C# Answers by Framework

Browse Popular Code Answers by Language