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

Parameters

types
This sequence of types.
typeBase
The direct 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
ThatDeriveFrom Method
ThatDeriveFromAny 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)