List to int[] c# code example
Example 1: c# declare an int list
List<int> intList = new List<int>();
Example 2: c# convert enumb to int array
int[] result = enumArray.Cast<int>().ToArray();
List<int> intList = new List<int>();
int[] result = enumArray.Cast<int>().ToArray();