public override void IntersectWith(IEnumerable <T> other) { CheckArgumentNotNull(other, "other"); var slice = new SortedSet <T> (this); slice.IntersectWith(other); Clear(); set.UnionWith(slice); }
public override void IntersectWith(IEnumerable <T> other) { if (other == null) { throw new ArgumentNullException("other"); } var slice = new SortedSet <T>(this); slice.IntersectWith(other); Clear(); _wrapped.UnionWith(slice); }