NDepend.API Documentation
IndirectlyUsedBy<TUsed,TUser> Method
NDepend.CodeModel Namespace > ExtensionMethodsSequenceUsage Class : IndirectlyUsedBy<TUsed,TUser> Method
The used code elements type that is IUsed or that implements IUsed.
The user code elements type that is IUser or that implements IUser.
This sequence of code elements.
The code element that uses directly or indirectly code elements in the returned sequence.
Returns a sub-sequence of this sequence codeElementsUsed, containing only code elements directly or indirectly used by codeElementUser .
Syntax
[Extension()]
public static IEnumerable<TUsed> IndirectlyUsedBy<TUsed,TUser>( 
   IEnumerable<TUsed> codeElementsUsed,
   TUser codeElementUser
)
where TUsed: class, ICodeElement
where TUser: class, IUser

Parameters

codeElementsUsed
This sequence of code elements.
codeElementUser
The code element that uses directly or indirectly code elements in the returned sequence.

Type Parameters

TUsed
The used code elements type that is IUsed or that implements IUsed.
TUser
The user code elements type that is IUser or that implements IUser.
Remarks
This extension method has a O(codeElementsUsed.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
IsUsedBy Method
UsedByAny<TUsed,TUser> Method
UsedByAll<TUsed,TUser> Method
IndirectlyUsing<TUser,TUsed> Method
IndirectlyUsedByAny<TUsed,TUser> Method