NDepend.API Documentation
ContainsSameCodeElementsThan<TCodeElement>(HashSet<TCodeElement>,HashSet<TCodeElement>) Method
NDepend.CodeModel Namespace > ExtensionMethodsHelpers Class > ContainsSameCodeElementsThan Method : ContainsSameCodeElementsThan<TCodeElement>(HashSet<TCodeElement>,HashSet<TCodeElement>) Method
The code element type that is ICodeElement or that implements ICodeElement.
This hahshet of code elements objects.
The other hahshet of code elements objects.
Returns true if this codeElementsHashset hashset contains the same set of code elements than the otherCodeElementsHashset hashset. Otherwise returns false.
Syntax
[Extension()]
public static bool ContainsSameCodeElementsThan<TCodeElement>( 
   HashSet<TCodeElement> codeElementsHashset,
   HashSet<TCodeElement> otherCodeElementsHashset
)
where TCodeElement: class, ICodeElement

Parameters

codeElementsHashset
This hahshet of code elements objects.
otherCodeElementsHashset
The other hahshet of code elements objects.

Type Parameters

TCodeElement
The code element type that is ICodeElement or that implements ICodeElement.
Remarks
This ContainsSameCodeElementsThan<TCodeElement>(IEnumerable<TCodeElement>,IEnumerable<TCodeElement>) overload, relies on the fact that both codeElementsHashset and otherCodeElementsHashset are hashsets, to execute with a faster O(codeElementsHashset.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

ExtensionMethodsHelpers Class
ExtensionMethodsHelpers Members
Overload List