ISet<T>.IsProperSupersetOf Method

Determines whether the current set is a correct superset of a specified collection.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)

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.

ExceptionCondition
ArgumentNullException

other is null.

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.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: