Determines whether all the elements in the specified collection are contained in the HashSet.
[Visual Basic]
Overrides Overloads Public Function Contains( _
ByVal collection As ICollection _
) As Boolean Implements _
ISet.Contains
true
if all the elements of the ICollection are
found in the HashSet; otherwise, false.
This implementation is close to O(1) in most cases.
Exception Type | Condition |
---|---|
System.ArgumentNullException |
The collection is a null reference
(Nothing in Visual Basic).
|
HashSet Class | HashSet Members | Foley.Utilities.Collections Namespace | HashSet.Contains Overload List