NDepend.API Documentation
BecameObsolete Method (ExtensionMethodsCQLinqCompare)
NDepend.Reserved.CQLinq Namespace > ExtensionMethodsCQLinqCompare Class : BecameObsolete Method
This NDepend.CodeModel.IMember object. A NDepend.CodeModel.IMember object can be a NDepend.CodeModel.IType, NDepend.CodeModel.IMethod or NDepend.CodeModel.IField object.
Returns true if this 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. This method can only be called in a ICQLinqExecutionContext, otherwise the method NDepend.CodeModel.ICompareContext.NDepend.CodeModel.ICompareContext.BecameObsolete must be called instead.
Syntax
[Extension()]
public static bool BecameObsolete( 
   IMember member
)

Parameters

member
This NDepend.CodeModel.IMember object. A NDepend.CodeModel.IMember object can be a NDepend.CodeModel.IType, NDepend.CodeModel.IMethod or NDepend.CodeModel.IField 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.BecameObsolete must be called instead.
Remarks
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