I have the 2 collections:
IEnumerable<Element> allElements
List<ElementId> someElements,
What is a concise way of doing the following together:
[1] Verifying that all elements in someElements exist in allElements, return quickly when condition fails.
and
[2] Obtain a list of Element objects that List<ElementId> someElements maps to.
Every Element object has an ElementId
Thank you.