Answers for "c# set array size"

C#
0

c# increase length of array

int[] myArray = { 1, 2, 3 };
Array.Resize(ref myArray, 5);
Posted by: Guest on November-05-2021
0

declare string array c# without size

List<string> myStringList = new List<string();
myStringList.Add("Test 1");
myStringList.Add("Test 2");
Posted by: Guest on May-22-2020

C# Answers by Framework

Browse Popular Code Answers by Language