NDepend.API Documentation
CommentsWereChanged Method (ExtensionMethodsCQLinqCompare)
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqCompare Class : CommentsWereChanged Method
This NDepend.CodeModel.ICodeContainer object. A NDepend.CodeModel.ICodeContainer object can be a NDepend.CodeModel.IAssembly, NDepend.CodeModel.INamespace, NDepend.CodeModel.IType or NDepend.CodeModel.IMethod object.
Returns true if comments of this codeContainer object, have been modified. This method can only be called in a ICQLinqExecutionContext, otherwise the method NDepend.CodeModel.ICompareContext.NDepend.CodeModel.ICompareContext.CommentsWereChanged must be called instead.
Syntax
[Extension()]
public static bool CommentsWereChanged( 
   ICodeContainer codeContainer
)

Parameters

codeContainer
This NDepend.CodeModel.ICodeContainer object. A NDepend.CodeModel.ICodeContainer object can be a NDepend.CodeModel.IAssembly, NDepend.CodeModel.INamespace, NDepend.CodeModel.IType or NDepend.CodeModel.IMethod object.
Exceptions
ExceptionDescription
This extension method cannot be called from a program consuming NDepend.API. In such context, the method NDepend.CodeModel.ICompareContext.NDepend.CodeModel.ICompareContext.CommentsWereChanged must be called instead.
Remarks
So far, comments change is detected only when NDepend.CodeModel.ICodeContainer.NbLinesOfComment has been changed.
In the context of a CQLinq compiled query, 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

ExtensionMethodsCQLinqCompare Class
ExtensionMethodsCQLinqCompare Members