NDepend.API Documentation
ContainsAll<T> Method
NDepend.Helpers Namespace > ExtensionMethodsEnumerable Class : ContainsAll<T> Method
The type parameter of the items in the sets.
This set that might contains the subset.
The set to test if contained in superset.
Determine if superset contains all elements of subset.
Syntax
[Extension()]
public static bool ContainsAll<T>( 
   IEnumerable<T> superset,
   IEnumerable<T> subset
)

Parameters

superset
This set that might contains the subset.
subset
The set to test if contained in superset.

Type Parameters

T
The type parameter of the items in the sets.
Remarks
true is returned if subset is empty.
true is returned if both subset and superset are empty.
false is returned if superset is empty and subset is not empty.
Requirements

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

See Also

Reference

ExtensionMethodsEnumerable Class
ExtensionMethodsEnumerable Members