NDepend.API Documentation
RelyOnCompareContext Property
NDepend.CodeQuery Namespace > IQueryCompiledSuccess Interface : RelyOnCompareContext Property
Gets a value indicating whether this code query relies on a NDepend.CodeModel.ICompareContext object.
Syntax
bool RelyOnCompareContext {get;}
Remarks
The returned value is independant from the fact that CompareContextOnWhichToExecute is null or not.
A code query that relies on a compare context and that is executed without a compare context won't return a useful result.
In such situation, at query runtime an empty NDepend.CodeModel.ICompareContext object is provided, that returns null or false for all properties.
Requirements

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

See Also

Reference

IQueryCompiledSuccess Interface
IQueryCompiledSuccess Members
ICompareContext Interface
CreateCompareContextWithOlder Method
ExtensionMethodsCQLinqCompare Class
Compile(String,ICompareContext) Method
CompileMany(IEnumerable<String>,ICompareContext) Method
TryCompareSourceWith(ISourceDecl,ISourceDecl) Method
CompareContext Field