Is there a way for me to filter Employees by group: ex:
List<String> notInGroups = GetNotInGroups();
var list = from p in employees
where p.Group.Name notin(notInGroups)
select p;
Is there some way to do something like this?
Thanks
You can do !Contains, like:
var list = from p in employees
where !notInGroups.Contains(p.Group.Name)
select p;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With