ISet<T>.IsProperSupersetOf Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Determines whether the current set is a correct superset of a specified collection.
Namespace: System.Collections.Generic
Assembly: System (in System.dll)
Syntax
'Declaration
Function IsProperSupersetOf ( _
other As IEnumerable(Of T) _
) As Boolean
bool IsProperSupersetOf(
IEnumerable<T> other
)
Parameters
- other
Type: System.Collections.Generic.IEnumerable<T>
The collection to compare to the current set.
Return Value
Type: System.Boolean
true if the ISet<T> object is a correct superset of other; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | other is nulla null reference (Nothing in Visual Basic). |
Remarks
If the current set is considered a proper superset of other, the current set must have at least one element that other does not have.
An empty set is a proper superset of any other collection. Therefore, this method returns true if the collection represented by the other parameter is empty, unless the current set is also empty.
This method always returns false if the number of elements in the current set is less than or equal to the number of elements in other.
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.