NDepend.API Documentation
ThatDeriveFrom Method
NDepend.CodeModel Namespace > ExtensionMethodsSequenceUsage Class : ThatDeriveFrom Method
This sequence of types.
The type base of types in the returned sequence.
Returns a sub-sequence of this sequence types, containing only types that derive from typeBase .
Syntax
[Extension()]
public static IEnumerable<IType> ThatDeriveFrom( 
   IEnumerable<IType> types,
   IType typeBase
)

Parameters

types
This sequence of types.
typeBase
The type base of types in the returned sequence.
Remarks
This extension method has a O(types.Count) 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

ExtensionMethodsSequenceUsage Class
ExtensionMethodsSequenceUsage Members
BaseClass Property
BaseClasses Property
DeriveFrom Method
DepthOfDeriveFrom Method
DerivedTypes Property
DirectDerivedTypes Property
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)