Check out example codes for "c# get index of item in list". It will help you in understanding the concepts better.

Code Example 1

Array.IndexOf(arrName, searchingFor)

Learn ReactJs, React Native from akashmittal.com