Click or drag to resize
EnumerableExtensionMethodsContainsAllT Method
Checks whether the first sequence contains all elements of the second one.

Namespace: Slash.Collections.Extensions
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
public static bool ContainsAll<T>(
	this IEnumerable<T> first,
	IEnumerable<T> second
)

Parameters

first
Type: System.Collections.GenericIEnumerableT
Containing sequence.
second
Type: System.Collections.GenericIEnumerableT
Contained sequence.

Type Parameters

T
Type of the sequence to check.

Return Value

Type: Boolean
true, if the first sequence contains all elements of the second one, and false otherwise.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also