NDepend.API Documentation
IsUsedDifferently Method (ExtensionMethodsCQLinqCompare)
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqCompare Class : IsUsedDifferently Method
This NDepend.CodeModel.ICodeElementParent object. A NDepend.CodeModel.ICodeElementParent object can be a NDepend.CodeModel.IAssembly, NDepend.CodeModel.INamespace or NDepend.CodeModel.IType object.
Returns true if this 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. This method can only be called in a ICQLinqExecutionContext, otherwise the method NDepend.CodeModel.ICompareContext.NDepend.CodeModel.ICompareContext.IsUsedDifferently must be called instead.
Syntax
[Extension()]
public static bool IsUsedDifferently( 
   ICodeElementParent codeElementParent
)

Parameters

codeElementParent
This NDepend.CodeModel.ICodeElementParent object. A NDepend.CodeModel.ICodeElementParent object can be a NDepend.CodeModel.IAssembly, NDepend.CodeModel.INamespace or NDepend.CodeModel.IType object.
Exceptions
ExceptionDescription
This extension method cannot be called from a program consuming NDepend.API. In such context, the method NDepend.CodeModel.ICompareContext.NDepend.CodeModel.ICompareContext.IsUsedDifferently must be called instead.
Remarks
In the context of a CQLinq compiled query, 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

ExtensionMethodsCQLinqCompare Class
ExtensionMethodsCQLinqCompare Members