NDepend.API Documentation
CodeElementInBaselineWasRemoved Property
NDepend.Issue Namespace > IIssue Interface : CodeElementInBaselineWasRemoved Property
Gets a value indicating whether the code element declared in the baseline code base snapshot has no equivalent in the newer code base snapshot and thus, can be considered as removed..
Syntax
bool CodeElementInBaselineWasRemoved {get;}
Remarks
A code rule can rely on an NDepend.CodeModel.ICompareContext object to query the diff between 2 snapshots of a code base, the newer snapshot and the baseline snapshot. For example rules to detect API breaking changes fall in this category. Such rule can match code elements in the baseline code base snapshot.

In such situation CodeElement returns the matched code element declared in the newer code base, and CodeElementInBaseline returns the matched code element declared in the baseline code base. However if CodeElementInBaseline has been removed and thus, has no equivalent in the newer code base snapshot, the property CodeElement returns the most inner parent code element of CodeElementInBaseline, that has an equivalent in the newer code base snapshot, and this property returns true to inform of this situation. If not in this situation, this property returns false.
Requirements

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

See Also

Reference

IIssue Interface
IIssue Members