NDepend.API Documentation
IndirectlyUsedByAny<TUsed,TUser> Method
NDepend.CodeModel Namespace > ExtensionMethodsSequenceUsage Class : IndirectlyUsedByAny<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 sequence of code elements that directly or indirectly uses code elements in the returned sequence.
Returns a sub-sequence of this sequence codeElementsUsed, containing only code elements directly or indirectly used by any code element in the sequence codeElementsUser .
Syntax
[Extension()]
public static IEnumerable<TUsed> IndirectlyUsedByAny<TUsed,TUser>( 
   IEnumerable<TUsed> codeElementsUsed,
   IEnumerable<TUser> codeElementsUser
)
where TUsed: class, ICodeElement
where TUser: class, IUser

Parameters

codeElementsUsed
This sequence of code elements.
codeElementsUser
The sequence of code elements that directly or indirectly uses 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
Elements contained in both sequences are removed from the result, since such element is used by itelf.
This extension method has a O(codeElementsUsed.Count + 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
UsedByAll<TUsed,TUser> Method
IndirectlyUsedBy<TUsed,TUser> Method
IndirectlyUsing<TUser,TUsed> Method
IndirectlyUsingAny<TUser,TUsed> Method