How do you find the index of an element in a Collection inherited class?
public class MyCollection : Collection<MyClass>
{
// implementation here
}
I tried to use .FindIndex on the collection but no success:
int index = collectionInstance.FindIndex(someLambdaExpression);
Any other ways to achieve this?