NDepend.API Documentation
IsUsedDifferently Method (ICompareContext)
NDepend.CodeModel Namespace > ICompareContext Interface : IsUsedDifferently Method
The ICodeElementParent object. A ICodeElementParent object can be a IAssembly, INamespace or IType object.
Returns true if the codeElementParent is a namespace or a type in a third-party assembly (or is a third-party assembly itself) and if some of its children code elements are not used anymore by the newer version of the code base, or are used by the newer version of the code base, but are not used by the older version.
Syntax

Parameters

codeElementParent
The ICodeElementParent object. A ICodeElementParent object can be a IAssembly, INamespace or IType object.
Exceptions
ExceptionDescription
codeElementParent 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
IsUsedDifferently Method