I have a list that holds a few strings(names). For this example. It will hold:
- TeSt1
- TeSt2
- TeSt3
And I'm trying to check if that list has one of those. And I'm doing this like this at the moment:
if (list.Contains(test2))
{
}
But I need it to be case insensitive.. But how can I do that? in an if statement.