resize array
Published: 30. January 2012 | Updated: 30. January 2012License: Microsoft Public License (MS-PL)
Categories: Framework » Arrays
Tags: Array C#
int[] array = new int[5]; Console.WriteLine(array.Length); Array.Resize(ref array, 10); Console.WriteLine(array.Length);Console Output:
5
10
10
| Send us feedback about this snippet » |





