I think its easy LINQ question, but i am very new to LINQ
I have this array:
int[] array = new int[7] { 1, 3, 5, 2, 8, 6, 4 };
and i wrote this code to get top 3 elements in this array:
var topThree = (from i in array orderby i descending select i).Take(3);
and when i check whats inside the topThree i find:
{System.Linq.Enumerable.TakeIterator}
count:0
What i did wrong, and how to correct my code.