Stable, Hash Based Symmetrical Difference
A lot of thought went into the implementation of the set algorithms in LINQ: Distinct
, Except
, Intersect
and Union
. They guarantee that the items are returned in the same order that they appear in before calling the method. So, these two expressions return the items in the same order:
Stable, Hash Based Symmetrical Difference
A lot of thought went into the implementation of the set algorithms in LINQ: Distinct
, Except
, Intersect
and Union
. They guarantee that the items are returned in the same order that they appear in before calling the method. So, these two expressions return the items in the same order: