C# test if an int is in a List<int> code example Example: c# check if int in int list bool isInList = intList.IndexOf(intVariable) != -1;