public class CategoryNavItem
{
public int ID { get; set; }
public string Name { get; set; }
public string Icon { get; set; }
public CategoryNavItem(
If you have a list like in your example:
List NavItems
You can use the generic Reverse<> extensions method to return a new list without modifiying the original one. Just use the extension method like this:
List reversed = NavItems.Reverse();
Notes: You need to specify the <> generic tags to explicit use the extension method. Don't forget the
using System.Linq;