c# - Select top 5 from a merged list (MVC) -


I have two lists that are merged after the order of the Linux statement, I would like to select the top 5 from that entire list . I was thinking about using the linq statement to select the top 5 from the list.

  var ListSort = List entry by listing from NewList in the list. Select listing list; // Tried to select Top 5 from here  

Any other suggestion on how to do this?

If you are going to use the link, then use

  myList.Take (5)  

Comments