I have two list of type IEnumerable <SelectListItem>
I need to create a new IEnumerable <SelectListItem>
with the elements of the first list that do not exist in the second list. how can i do this?
I tried to do it with a Except()
but did not result...
Example code:
IEnumerable<SelectListItem> SelectListItemA = ....;
IEnumerable<SelectListItem> SelectListItemB = ....;
IEnumerable<SelectListItem> Except = SelectListItemA.Except(SelectListItemB);