C# – using List.Find() with custom objects
Find() will find the element that matches the predicate that you pass as a parameter, so it is not related to Equals() or the == operator. var element = myList.Find(e => [some condition on e]); In this case, I have used a lambda expression as a predicate. You might want to read on this. In … Read more