Determines whether all the elements in the specified ICollection are contained in the set.
[Visual Basic]
Overridable 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 set; otherwise, false.
This method determines equality by calling Equals.
Keep in mind that the Object to locate can be a
null reference (Nothing in Visual Basic). If you do
not want this behaviour you must override this method.
| Exception Type | Condition |
|---|---|
| System.NullReferenceException |
The collection is a null reference
(Nothing in Visual Basic).
|
SetBase Class | SetBase Members | Foley.Utilities.Collections Namespace | SetBase.Contains Overload List