NDepend.API Documentation
DepthOfDeriveFrom Method (IType)
NDepend.CodeModel Namespace > IType Interface : DepthOfDeriveFrom Method
The base class.
Returns a nullable numeric value equals to this type depth of inheritance, relative to baseClass. Returns null if this type doesn't derive from baseClass.
Syntax
Nullable<ushort> DepthOfDeriveFrom( 
   IType baseClass
)

Parameters

baseClass
The base class.
Remarks
For any type T, T.DepthOfDeriveFrom(T) returns 0.
This property getter has a O(this.DepthOfInheritance) 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

IType Interface
IType Members
BaseClass Property
BaseClasses Property
DeriveFrom Method
DerivedTypes Property
DirectDerivedTypes Property
ThatDeriveFrom Method
ThatDeriveFromAny Method
ThatDirectlyDeriveFrom Method
ThatDirectlyDeriveFromAny Method
DepthOfDeriveFrom Method
DepthOfDeriveFromAny Method
NDepend.Reserved.CQLinq.ExtensionMethodsCQLinqDependency.DeriveFrom(NDepend.CodeModel.IType,System.String)
NDepend.Reserved.CQLinq.ExtensionMethodsCQLinqDependency.DepthOfDeriveFrom(NDepend.CodeModel.IType,System.String)