Answers for "filter enum using linq query"

C#
0

filter enum using linq query

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

  var result = enumList.Intersect(processListIDs)
                       .Cast<ProcessStatus>();
Posted by: Guest on September-07-2021

C# Answers by Framework

Browse Popular Code Answers by Language