!Contains() of List object doesnt work
- by Tony
I am using Contains() to identify something that NOT contain in the list. So something like,
if(!list.Contains(MyObject))
{
//do something
}
but, the whole if statment goes to true even though MyObject is already in the list.
Anybody what I am doing wrong?
Thank you