int[] integers = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
What is the difference between this :
var odd = from i in integers
where i % 2 == 1
select i;
and this :
var ODD = integers.Where(i => i % 2 == 1);
if there is no difference and just the faces are different, so why should it be possible at all? I mean what is the need of having two ways of doing it?