NDepend.API Documentation
ThatImplement Method
NDepend.CodeModel Namespace > ExtensionMethodsSequenceUsage Class : ThatImplement Method
This sequence of types.
The interface implemented by types in the returned sequence.
Returns a sub-sequence of this sequence types, containing only types that implement, or interfaces that extend, interface.
Syntax
[Extension()]
public static IEnumerable<IType> ThatImplement( 
   IEnumerable<IType> types,
   IType interface
)

Parameters

types
This sequence of types.
interface
The interface implemented by types in the returned sequence.
Remarks
If the interface type is not an interface, the sequence returned is empty.
This extension method has a O(types.Count) 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

ExtensionMethodsSequenceUsage Class
ExtensionMethodsSequenceUsage Members
Implement Method
InterfacesImplemented Property
TypesThatImplementMe Property
NbInterfacesImplemented Property
ThatImplementAll Method
ThatImplementAny Method
NDepend.Reserved.CQLinq.ExtensionMethodsCQLinqDependency.Implement(NDepend.CodeModel.IType,System.String)