Επεξεργασία

Κοινή χρήση μέσω


ISet<T>.IsProperSupersetOf(IEnumerable<T>) Method

Definition

Determines whether the current set is a proper (strict) superset of a specified collection.

public:
 bool IsProperSupersetOf(System::Collections::Generic::IEnumerable<T> ^ other);
public bool IsProperSupersetOf (System.Collections.Generic.IEnumerable<T> other);
abstract member IsProperSupersetOf : seq<'T> -> bool
Public Function IsProperSupersetOf (other As IEnumerable(Of T)) As Boolean

Parameters

other
IEnumerable<T>

The collection to compare to the current set.

Returns

true if the current set is a proper superset of other; otherwise, false.

Exceptions

other is null.

Remarks

If the current set is 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.

Applies to