finding the index of an element in a list c# code example Example: c# get index of item in list Array.IndexOf(arrName, searchingFor)