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.
Simple but it works
MyList.Remove(nextObject) MyList.Add(nextObject)
or
if (!MyList.Contains(nextObject)) MyList.Add(nextObject);