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

Parameters

codeElementsUser
This sequence of code elements.
codeElementsUsed
The sequence of code elements that are directly or indirectly used by any 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
Elements contained in both sequences are removed from the result, since such element is using 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
UsingAll<TUser,TUsed> Method
IndirectlyUsedBy<TUsed,TUser> Method
IndirectlyUsedByAny<TUsed,TUser> Method
IndirectlyUsingAny<TUser,TUsed> Method