NDepend.API Documentation
IsPresentInBothBuilds Method (ICompareContext)
NDepend.CodeModel Namespace > ICompareContext Interface : IsPresentInBothBuilds Method
The ICodeElement object.
Returns true if the codeElement object is both in the newer and older versions of the code base.
Syntax
bool IsPresentInBothBuilds( 
   ICodeElement codeElement
)

Parameters

codeElement
The ICodeElement object.
Exceptions
ExceptionDescription
codeElement is not NewerCodeBase nor OlderCodeBase not a code element that belong to any of these code base.
Remarks
If true is returned, this means that the codeElement has not been added nor removed.
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
IsPresentInBothBuilds Method