示例#1
0
        protected override void ExecuteCore()
        {
            var doesAllCarHavePriceGreaterThanZero   = Cars.All(x => x.Price > 0);
            var doesAllCarHavePriceGreaterThanThirty = Cars.All(x => x.Price > 30);

            Console.Write("\tAre all cars with price greater than 0 - " + doesAllCarHavePriceGreaterThanZero);
            Console.WriteLine("\n\tAll Cars with price greater than 30 - " + doesAllCarHavePriceGreaterThanThirty);
        }