1 out of 6 rated this helpful - Rate this topic

Enumerable.Except Method

Produces the set difference of two sequences.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Except<TSource>(IEnumerable<TSource>, IEnumerable<TSource>) Produces the set difference of two sequences by using the default equality comparer to compare values.
Public method Static member Except<TSource>(IEnumerable<TSource>, IEnumerable<TSource>, IEqualityComparer<TSource>) Produces the set difference of two sequences by using the specified IEqualityComparer<T> to compare values.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Except is sensitive when Equals and GetHashCode overriden

When several objects has same hash code and you put it in array items

items.Except(new [] {}) == empty array