Get the index of items in a list in C# code example
Example 1: c# get index of item in list
Array.IndexOf(arrName, searchingFor)
Example 2: Get Index position of an element in a list in c#
int index = myList.FindIndex(a => a.Prop == oProp);
Array.IndexOf(arrName, searchingFor)
int index = myList.FindIndex(a => a.Prop == oProp);