I have a list of usr -
public static List<usr> usersList = new List<usr>();
where usr definition is -
public class usr
{
public string name;
public string question;
public string connID;
}
When I Find/Exist for an existing usr I always get false (not exist), the code I am using to Find/Exist follows -
bool b = usersList.Exists(x => x.name == name);
usr student = usersList.Find(x => x.name == name);
when inspecting usersList just before the Find/Exist I can see that usr exist in the list.
What am I doing wrong ???