Introducing Lambda Expressions – Validating a List without a loop

1: using System; 2: using System.Collections.Generic; 3: using System.Linq; 4:  5: namespace LambdaExpressionDemo 6: { 7: interface IValidator 8: { 9: bool Validate(); 10: } 11:  12: class RandomValidator : IValidator 13: { 14: private static Random randomGenerator = new Random(); 15:  16: int value = 0; 17:  18: public RandomValidator() 19: { 20: value…

2