When I was reviewing the source code of Unity Graphics C#, I discovered this bug:
The parameter “count” in this method has not been utilized.
I think the correct way of writing it should be like this? :
public int FindIndex(int startIndex, int count, Predicate<T> match)
{
for (int i = startIndex; i < size && count > 0; ++i, --count)
{
if (match(m_Array[i]))
{
return i;
}
}
return -1;
}
