The following code sample demonstrates how: int[] numbers = {2, 4, 6, 8}; bool allEven = numbers.All(n => n % 2 == 0); // this returns true for the given array but false for {2,3,6,8}