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 indata
ton
and 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.