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

Parameters

types
This sequence of types.
typesBase
Direct types base of types in the returned sequence.
Remarks
This extension method has a O(types.Count + typesBase.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
ThatDirectlyDeriveFrom 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)