NDepend.API Documentation
MeInOtherBuild<T> Method
NDepend.CodeModel Namespace > ICompareContext Interface : MeInOtherBuild<T> Method
T is a ICodeElement type.
The ICodeElement object.
Returns the older version of codeElement if IsInNewerBuild, else return the older version.
Syntax
T MeInOtherBuild<T>( 
   T codeElement
)
where T: class, ICodeElement

Parameters

codeElement
The ICodeElement object.

Type Parameters

T
T is a ICodeElement type.
Exceptions
ExceptionDescription
codeElement is not NewerCodeBase nor OlderCodeBase not a code element that belong to any of these code base.
Remarks
If codeElement has been added in newer build, or removed from older build, this method returns null. 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

ICompareContext Interface
ICompareContext Members