IndexOfAll
Returns all indices of n in an IList.
- Use
Enumerable.Range()to iterate over all indices indata. - Use
Enumerable.Where()in combination withobject.Equals()to compare each value indatatonand return only matching indices.
Returns all indices of n in an IList.
Enumerable.Range() to iterate over all indices in data.Enumerable.Where() in combination with object.Equals() to compare each value in data to n and return only matching indices.