Answers for "make array of fucntion c#"

C#
21

c# create array

// Define and Initialize
int[] arr = {1, 2, 3};

// Buuuut:
// Initial defining
int[] arr;

// This works
arr = new int[] {1, 2, 3};   

// This will cause an error
// arr = {1, 2, 3};
Posted by: Guest on March-04-2020
0

c# create array

int[] arr = Enumerable.Range(0, X+1).ToArray();
Posted by: Guest on March-26-2022

C# Answers by Framework

Browse Popular Code Answers by Language