Get top 3 records form a IList +C# -
i have ilist has records .i need top 3 records . there way 'linq'?
how about
ilist<string> list = new list<string> { "5", "4", "3", "2", "1"}; var results = list.orderby(x => x).take(3); i have ilist has records .i need top 3 records . there way 'linq'?
how about
ilist<string> list = new list<string> { "5", "4", "3", "2", "1"}; var results = list.orderby(x => x).take(3);
Comments
Post a Comment