/// <summary> /// Searches for an element that matches the conditions defined by the specified /// predicate, and returns the zero-based index of the first occurrence within the /// entire list. /// </summary> public static int FindIndex(SystemGenerics.List <T> list, Predicate <T> match) { (list as Mock)?.CheckDataRace(false); return(list.FindIndex(match)); }