c# check if int list exists in int list code example Example: c# check if int in int list bool isInList = intList.IndexOf(intVariable) != -1;