Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

filter enum using linq query

  var enumList = Enum.GetValues(typeof (ProcessStatus))
                     .OfType<ProcessStatus>().Cast<byte>();

  var result = enumList.Intersect(processListIDs)
                       .Cast<ProcessStatus>();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #filter #enum #linq #query
ADD COMMENT
Topic
Name
9+5 =