I have a list
List myList
and I am adding items to a list and I want to check if that object is already in the list.
Simply use Contains method. Note that it works based on the equality function Equals
Equals
bool alreadyExist = list.Contains(item);