Horje
C# extend array Code Example
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();
use length to resize an array
let array = [11, 12, 13, 14, 15];  
console.log(array.length); // 5  

array.length = 3;  
console.log(array.length); // 3  
console.log(array); // [11,12,13]

array.length = 0;  
console.log(array.length); // 0  
console.log(array); // []




Csharp

Related
monogame print Code Example monogame print Code Example
asp.net 5 iis HTTP Error 500.19 - Internal Server Error Code Example asp.net 5 iis HTTP Error 500.19 - Internal Server Error Code Example
hash sign c sharp Code Example hash sign c sharp Code Example
Q# hello world Code Example Q# hello world Code Example
unitydont play sound until finsihed Code Example unitydont play sound until finsihed Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9