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