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); 

Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -