Below is my Enumerator List:
Enumerator List
public enum StatusEnum { Open = 1, Rejected = 2, Accepted = 3, Started = 4, Completed = 5, Canc
". . . only show the first 4 statuses and ignore the rest."
To get the first n elements of an IEnumerable, use the Take method:
n
IEnumerable
Take
return Enum.GetValues(typeof(Activity.StatusEnum)) .Cast() .Take(4) .ToList();