I have a List with the class MyObj : IComparable. I wrote the method CompareTo in the MyObj class per the
List
class MyObj : IComparable
CompareTo
MyObj
According to the documentation for List.Contains, it uses either your implementation of IEquatable interface or object.Equals, that you can override as well.
List.Contains
IEquatable
object.Equals