0

i have tow queries one is

  List<int> Scores = new List<int>() { 97, 92, 81, 60 };
IEnumerable<int> queryHighScores =
            from a in Scores
            where a < 5
            select a;

and the other is

       int[] numbers = { 12, 43, 44, 323, 44, 45, 34 };
        var query1 = from a in numbers
                     where a < 5 
                     select a;

now anybody tell me what is IEnumerable and why we use this . both query return same result so why we use IEnumerable

SUPER_USER
  • 275
  • 3
  • 16

0 Answers0