NDepend.API Documentation
WasAdded(IAbsoluteFilePath) Method
NDepend.CodeModel Namespace > ICompareContext Interface > WasAdded Method : WasAdded(IAbsoluteFilePath) Method
The absolute source file path.
Returns true if the sourceFilePath has been added since the baseline.
Syntax

Parameters

sourceFilePath
The absolute source file path.
Remarks
sourceFilePath can be obtained from ICodeElement.ICodeElement.SourceDecls , ISourceDecl.ISourceDecl.SourceFile.ISourceFile.FilePath.
This method works even when the path is rebased, thanks to an heuristic.
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
Overload List
CodeWasChanged Method
WasAdded(ICodeElement) Method
WasAdded(IAbsoluteDirectoryPath) Method
WasChanged(IAbsoluteFilePath) Method
WasRemoved(IAbsoluteFilePath) Method