Determine if a sequence contains all elements of another sequence using Linq [duplicate]

Count? How about Not Any?

bool contained = !subset.Except(superset).Any();

Leave a Comment