[Extension()] public static Nullable<ushort> DepthOfDeriveFrom( IType type, string baseClassFullName )
Parameters
- type
- This derived type.
- baseClassFullName
- The NDepend.CodeModel.ICodeElement.FullName of the base class.
The string baseClassFullName can contain wildcard '*' characters but cannot be just a single wildcard string "*".
If one or several classes are matched by baseClassFullName, this method has a derives from any behavior.
Return Value
baseClass being a NDepend.CodeModel.IType whose NDepend.CodeModel.ICodeElement.FullName is baseClassFullName:
Returns null if type is not directly nor indirectly deriving from baseClass.
Returns 0 if type is a baseClass.
Returns 1 if type directly derives from baseClass.
Returns 2 if type directly derives from a base class that directly derives from a baseClass.
...
If a non-null number is returned, returns the lowest possible number.
Returns null if type is not directly nor indirectly deriving from baseClass.
Returns 0 if type is a baseClass.
Returns 1 if type directly derives from baseClass.
Returns 2 if type directly derives from a base class that directly derives from a baseClass.
...
If a non-null number is returned, returns the lowest possible number.