How to perform LINQ query over Enum?

前端 未结 6 590
梦如初夏
梦如初夏 2021-02-03 19:42

Below is my Enumerator List:

public enum StatusEnum
{
    Open = 1,
    Rejected = 2,
    Accepted = 3,
    Started = 4,
    Completed = 5,
    Canc         


        
6条回答
  •  野的像风
    2021-02-03 20:03

    How about something along the lines of:

    .Where(x => x <= Activity.StatusEnum.Started)
    

提交回复
热议问题