c# check if all values in a list are 0 usng all code example Example: c# check if int in int list bool isInList = intList.IndexOf(intVariable) != -1;