Sequence Except TSource  Method (ISequence TSource , IEnumerable TSource , IEqualityComparer TSource )A Sandcastle Documented Class Library
Produces the set difference of two sequences by using the specified IEqualityComparer T  to compare values. If the second sequence represents an infinite set or series, this will never return!

Namespace: Sequences
Assembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax
public static ISequence<TSource> Except<TSource>(
	this ISequence<TSource> first,
	IEnumerable<TSource> second,
	IEqualityComparer<TSource> comparer
)

Parameters

first
Type: Sequences ISequence TSource 
A sequence whose elements that are not also in second will be returned.
second
Type: System.Collections.Generic IEnumerable TSource 
A sequence whose elements that also occur in this sequence will cause those elements to be removed from the returned sequence.
comparer
Type: System.Collections.Generic IEqualityComparer TSource 
An IEqualityComparer T  to compare values.
Type Parameters
TSource
The type of the elements of the input sequences.

Return Value

Type: ISequence TSource 
A sequence that contains the set difference of the elements of two sequences.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISequence TSource . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also