NDepend.API Documentation
Implement Method (ExtensionMethodsCQLinqDependency)
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqDependency Class : Implement Method
This implementer type.
The NDepend.CodeModel.ICodeElement.FullName of the interface.
The string interfaceFullName can contain wildcard '*' characters but cannot be just a single wildcard string "*".
If one or several interfaces are matched by interfaceFullName, this method has a implements any behavior.
Returns true if type implements an interface whose NDepend.CodeModel.ICodeElement.FullName is interfaceFullName. This method can only be called in a ICQLinqExecutionContext, otherwise the method NDepend.CodeModel.IType.NDepend.CodeModel.IType.Implement must be called instead.
Syntax
[Extension()]
public static bool Implement( 
   IType type,
   string interfaceFullName
)

Parameters

type
This implementer type.
interfaceFullName
The NDepend.CodeModel.ICodeElement.FullName of the interface.
The string interfaceFullName can contain wildcard '*' characters but cannot be just a single wildcard string "*".
If one or several interfaces are matched by interfaceFullName, this method has a implements any behavior.

Return Value

interface being a NDepend.CodeModel.IType whose NDepend.CodeModel.ICodeElement.FullName is interfaceFullName:
Returns true if type implements a interface, otherwise returns false.
Exceptions
ExceptionDescription
This extension method cannot be called from a program consuming NDepend.API. In such context, the method NDepend.CodeModel.IType.NDepend.CodeModel.IType.Implement must be called instead.
Remarks
If one or several interfaces are matched by interfaceFullName, they will be listed in NDepend.CodeQuery.IQueryExecutionSuccessResult.TargetCodeElements.
In the context of a CQLinq compiled query, this method has a constant time complexity.
Requirements

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

See Also

Reference

ExtensionMethodsCQLinqDependency Class
ExtensionMethodsCQLinqDependency Members
Implement Method
InterfacesImplemented Property
TypesThatImplementMe Property
NbInterfacesImplemented Property
ThatImplement Method
ThatImplementAll Method
ThatImplementAny Method