NDepend.API Documentation
ICompareContext Interface Members
Properties  Methods 

NDepend.CodeModel Namespace : ICompareContext Interface

The following tables list the members exposed by ICompareContext.

Public Properties
 NameDescription
 PropertyReturns true if any change is detected between OlderCodeBase and NewerCodeBase.  
 PropertyGets the newer version of the code base for this ICompareContext object.  
 PropertyGets the older version of the code base for this ICompareContext object.  
Top
Public Methods
 NameDescription
 MethodReturns true if the member is not tagged with System.ObsoleteAttribute in the older version of the code base, but is tagged as obsolete in the newer version of the code base.  
 MethodReturns true if the code of this codeContainer object, has been modified.  
 MethodReturns true if comments of this codeContainer object, have been modified.  
 MethodReturns true if the codeElement object is in the newer version of the code base.  
 MethodReturns true if the codeElement object is in the older version of the code base.  
 MethodReturns true if the codeElement object is in a third-party assembly (or is a third-party assembly itself), and if it is used by the older version of the code base, but not by the newer version.  
 MethodReturns true if the codeElement object is both in the newer and older versions of the code base.  
 MethodReturns true if the codeElementParent is a namespace or a type in a third-party assembly (or is a third-party assembly itself) and if some of its children code elements are not used anymore by the newer version of the code base, or are used by the newer version of the code base, but are not used by the older version.  
 MethodReturns true if the codeElement object is in a third-party assembly (or is a third-party assembly itself), and if it is used by the newer version of the code base, but not by the older version.  
 MethodReturns the older version of codeElement if IsInNewerBuild, else return the older version.  
 MethodReturns the newer version of the codeElement object.  
 MethodReturns the older version of the codeElement object.  
 MethodReturns true if the visibility of this member has been changed.  
 MethodOverloaded. Returns true if the codeElement object has been added and thus, is not present in the older version of the code base.  
 MethodOverloaded. Returns true if the codeElement object was changed in any way (code change, comment change, visibility change...).  
 MethodOverloaded. Returns true if the codeElement object has been removed and thus, is not present in the newer version of the code base.  
Top
Extension Methods
 NameDescription
Public Extension MethodCreate a dictionary of suppressed messages indexed by RuleIdOrCategory objects defined on compareContext.OlderCodeBase, from a similar dictionary defined on compareContext.NewerCodeBase.
Public Extension MethodCreate an issues-set-diff object dedicated compare newerIssuesSet and olderIssuesSet and makes convenient to browse diff information about issues, rule and code elements of these two issues sets.
Top
See Also

Reference

ICompareContext Interface
NDepend.CodeModel Namespace
CreateCompareContextWithOlder Method
ExtensionMethodsCQLinqCompare Class
RelyOnCompareContext Property
Compile(String,ICompareContext) Method
CompileMany(IEnumerable<String>,ICompareContext) Method
TryCompareSourceWith(ISourceDecl,ISourceDecl) Method