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

Parameters

codeElementsUser
This sequence of code elements.
codeElementUsed
The code element that is directly or indirectly used by code elements in the returned sequence.

Type Parameters

TUser
The user code elements type that is IUser or that implements IUser.
TUsed
The used code elements type that is IUsed or that implements IUsed.
Remarks
This extension method has a O(codeElementsUser.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
UsingAny<TUser,TUsed> Method
UsingAll<TUser,TUsed> Method
IndirectlyUsedBy<TUsed,TUser> Method
IndirectlyUsingAny<TUser,TUsed> Method