/// <summary> /// Searches for the specified object and returns the zero-based index of the first /// occurrence within the entire list. /// </summary> public static int IndexOf(SystemGenerics.List <T> list, T item) { (list as Mock)?.CheckDataRace(false); return(list.IndexOf(item)); }