Try this
If you want to validate only fixed values this will be enough
private static bool ValidateFixedNumbers(int number)
{
int[] numbers = { 1, 2, 4, 8, 11, 56, 78 };
return numbers.Contains(number);
}
with in a range , you can use this.
private static bool ValidateInRange(int from, int to, int number)
{
return System.Linq.Enumerable.Range(from, to).Contains(number);
}