NDepend.API Documentation
IsNotUsedAnymore Method (ICompareContext)
NDepend.CodeModel Namespace > ICompareContext Interface : IsNotUsedAnymore Method
The ICodeElement object. A ICodeElement object can be a IAssembly, INamespace, IType, IMethod or IField object.
Returns true if the codeElement object is in a third-party assembly (or is a third-party assembly itself), and if it is used by the older version of the code base, but not by the newer version.
Syntax
bool IsNotUsedAnymore( 
   ICodeElement codeElement
)

Parameters

codeElement
The ICodeElement object. A ICodeElement object can be a IAssembly, INamespace, IType, IMethod or IField object.
Exceptions
ExceptionDescription
codeElement is not NewerCodeBase nor OlderCodeBase not a code element that belong to any of these code base.
Remarks
This 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

ICompareContext Interface
ICompareContext Members
IsNotUsedAnymore Method