NDepend.API Documentation
DeriveFrom Method (IType)
NDepend.CodeModel Namespace > IType Interface : DeriveFrom Method
The base class to derive from.
Returns a value indicating whether this type derives directly or indirectly from baseClass.
Syntax
bool DeriveFrom( 
   IType baseClass
)

Parameters

baseClass
The base class to derive from.
Remarks
For any type T, T.DeriveFrom(T) returns false.
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
DepthOfDeriveFrom 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)