All the examples I see of using the IndexOf() method in List are of basic string types. What I want to know is how to return the index of
IndexOf()
List
The answer is for those coming here to know why IndexOf() doesn't work.
Your class must override Equals method of object possessing the following declaration.
Equals
object
public override bool Equals(object obj)