NDepend.API Documentation
TryGetAnalysisResultRefToCompareWith(IProjectBaseline,IAnalysisResultRef) Method
NDepend.Analysis Namespace > ExtensionMethodsProjectAnalysis Class > TryGetAnalysisResultRefToCompareWith Method : TryGetAnalysisResultRefToCompareWith(IProjectBaseline,IAnalysisResultRef) Method
This NDepend project baseline, obtained from IProject.NDepend.Project.IProject.BaselineDuringAnalysis or IProject.NDepend.Project.IProject.BaselineInUI.
If the method returns TryGetAnalysisResultRefToCompareWithResult.TryGetAnalysisResultRefToCompareWithResult.DoCompareWith, analysisResultRef is not null and references the analysis result used for baseline.
Try gets an analysis reference corresponding to this project baseline to compare with.
Syntax

Parameters

projectBaseline
This NDepend project baseline, obtained from IProject.NDepend.Project.IProject.BaselineDuringAnalysis or IProject.NDepend.Project.IProject.BaselineInUI.
analysisResultRef
If the method returns TryGetAnalysisResultRefToCompareWithResult.TryGetAnalysisResultRefToCompareWithResult.DoCompareWith, analysisResultRef is not null and references the analysis result used for baseline.

Return Value

TryGetAnalysisResultRefToCompareWithResult.TryGetAnalysisResultRefToCompareWithResult.DoCompareWith if an an analysis result reference representing the baseline to compare with can be found, else returns another value of the enumeration TryGetAnalysisResultRefToCompareWithResult.
Requirements

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

See Also

Reference

ExtensionMethodsProjectAnalysis Class
ExtensionMethodsProjectAnalysis Members
Overload List