NDepend.API Documentation
Except<T> Method (ExtensionMethodsEnumerable)
NDepend.Helpers Namespace > ExtensionMethodsEnumerable Class : Except<T> Method
The element type.
A sequence of elements.
The element excluded.
Produces the set seq excluding elementExcluded. The equality test relies on the Equals() method.
Syntax
[Extension()] 
[IteratorStateMachine(NDepend.Helpers.ExtensionMethodsEnumerable/d__8`1)] 
public static IEnumerable<T> Except<T>( 
   IEnumerable<T> seq, 
   T elementExcluded 
)

Parameters

seq
A sequence of elements.
elementExcluded
The element excluded.

Type Parameters

T
The element type.

Return Value

A sequence that contains the set difference of the elements of seq minus elementExcluded.
Remarks
This extension method has a constant time complexity.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsEnumerable Class
ExtensionMethodsEnumerable Members