Answers for "add size to array C#"

C#
0

add size to array C#

Array.Resize(ref arrayName, arrayName.Length + 4);
Posted by: Guest on January-21-2021
-1

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); // []
Posted by: Guest on November-21-2020

C# Answers by Framework

Browse Popular Code Answers by Language