C# extend array
string[] items = new string[3] { "input1", "input2", "input3" };
string[] moreItems = new string[10] { "input4", "input5" };
// array to list
List<string> itemsList = items.ToList<string>();
itemsList.Add("newItem");
// or merge an other array to the list
itemsList.AddRange(moreItems);
// list to array
string[] newArray = itemsList.ToArray();
Also in C#:
- c# display float with 2 decimal places
- c# read a webpage data
- C# .net core convert to int round up
- unity html get request
- get attribute value of xml element c#
- unity fall damage c#
- reload scene unity
- how to generate random numbers in c#
- bitmap to byte array c#
- iteration c#
- c# repeat string x times
- asp list box
- get random value from list c#
- how to convert object in string JSON c#
- .net core cli
- how to display an image url in c# picturebox
- start up file in asp.net core
- vb.net check if datatable has rows
- strtorime online
- viewBag as a list
- replace double backslash with single backslash c#
- C# previous method
- unity rotate vector
- bind repeater to dictionary