Check out example codes for "c# get index of element in array". It will help you in understanding the concepts better.
Code Example 1
int[] arr = { 3, 6, 4, 1, 6, 8 };
// returns 1
Array.IndexOf(arr, 6);
Code Example 2
get index of any element in array
Learn ReactJs, React Native from akashmittal.com