 | EnumerableExtensionMethodsContainsAllT Method |
Checks whether the first sequence contains all elements of the second one.
Namespace: Slash.Collections.ExtensionsAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxpublic static bool ContainsAll<T>(
this IEnumerable<T> first,
IEnumerable<T> second
)
<ExtensionAttribute>
Public Shared Function ContainsAll(Of T) (
first As IEnumerable(Of T),
second As IEnumerable(Of T)
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
static bool ContainsAll(
IEnumerable<T>^ first,
IEnumerable<T>^ second
)
[<ExtensionAttribute>]
static member ContainsAll :
first : IEnumerable<'T> *
second : IEnumerable<'T> -> bool
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:
Booleantrue, 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