If I have an object of type MyBull and a List:
// Just an example
MyBull x = getMeTheObjectWithIdFromDB(9);
ori
Does your MyBull object implement IEquatable? This method will determine the equality of two objects
requested by OP
Your MyBull class would implement IEquatable
public class MyBull : IEquatable
and then you would need to override the Equals method
public bool Equals(MyBull theOtherMyBull)
As David Neale mentions below, this is best used when you're comparing objects of the same type--which you are. Overriding Object.Equals and Object.GetHashCode will work too.