SyntaxFix
Write A Post
Hire A Developer
Questions
If you just need a true/false result
bool isInList = intList.IndexOf(intVariable) != -1;
if the intVariable does not exist in the List it will return -1