create int array from enum c# code example
Example 1: c# enum to int array
int[] b = Array.ConvertAll((int[])Enum.GetValues(typeof(TestEnum)), Convert.ToInt32);
Example 2: c# convert enumb to int array
int[] result = enumArray.Cast<int>().ToArray();