Answers for ".net framework cheat sheet"

C#
0

.net framework cheat sheet

// Declare a single-dimensional array of length 5 of type int
int[] array1 = new int[5];

// Declare and set array element values
int[] array2 = new int[] { 1, 3, 5, 7, 9 };

// Alternative syntax
int[] array3 = { 1, 2, 3, 4, 5, 6 };
Posted by: Guest on April-27-2021

C# Answers by Framework

Browse Popular Code Answers by Language