NDepend.API Documentation
ContainsSamePathsThan<T> Method
NDepend.Path Namespace > ExtensionMethodsOnPathsCollection Class : ContainsSamePathsThan<T> Method
The path type, any interface type implementing IPath
This collection of paths.
The other collection of paths.
Determine if this collection1 and collection2 contain the same set of paths.
Syntax
[Extension()]
public static bool ContainsSamePathsThan<T>( 
   ICollection<T> collection1,
   ICollection<T> collection2
)
where T: class, IPath

Parameters

collection1
This collection of paths.
collection2
The other collection of paths.

Type Parameters

T
The path type, any interface type implementing IPath

Return Value

true if collection2 contains the same set of path than this collection1. true also, if this collection1 and collection2 are both null. true also, if this collection1 and collection2 are both empty.
Remarks
Collections can contain null paths.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsOnPathsCollection Class
ExtensionMethodsOnPathsCollection Members