I have a strongly typed list of custom objects, MyObject, which has a property Id, along with some other properties.
MyObject
Id
Let\'s say that the
You can use IEquatable. Implement this in your class, and then check to see if the T passed to the Equals has the same Id as this.Id. I'm sure this works for checking a key in a dictionary, but I've not used it for a collection.
IEquatable