c# get index of item in array of objects code example
Example: c# find index element array
int[] arr = { 3, 6, 4, 1, 6, 8 };
// returns 1
Array.IndexOf(arr, 6);
int[] arr = { 3, 6, 4, 1, 6, 8 };
// returns 1
Array.IndexOf(arr, 6);