The Situation
You are trying to find out if an object exists in a List object.
A Solution
Use Linq. The example below looks for a User object in a List<User> by searching for the UserName:
private int FindObjectInList(List<User> list, string uName) { return list.FindIndex(s => s.UserName == uName); }