NDepend.API Documentation
CreateCompareContextWithOlder Method
NDepend.CodeModel Namespace > ExtensionMethodsHelpers Class : CreateCompareContextWithOlder Method
The ICodeBase object that represents the NewerCodeBase in the created compare context.
The ICodeBase object that represents the OlderCodeBase in the created compare context.
Creates a new ICompareContext object, with newer for NewerCodeBase and older for OlderCodeBase.
Syntax
[Extension()]
public static ICompareContext CreateCompareContextWithOlder( 
   ICodeBase newer,
   ICodeBase older
)

Parameters

newer
The ICodeBase object that represents the NewerCodeBase in the created compare context.
older
The ICodeBase object that represents the OlderCodeBase in the created compare context.
Remarks
newer can be equal to older. This possibility is convenient if you need a see object from a object.
Requirements

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

See Also

Reference

ExtensionMethodsHelpers Class
ExtensionMethodsHelpers Members
ICompareContext Interface
ICodeBase Interface
ICompareContext Interface
ExtensionMethodsCQLinqCompare Class
RelyOnCompareContext Property
Compile(String,ICompareContext) Method
CompileMany(IEnumerable<String>,ICompareContext) Method
TryCompareSourceWith(ISourceDecl,ISourceDecl) Method