Uredi

Deli z drugimi prek


ImmutableSortedSet<T>.IsSupersetOf(IEnumerable<T>) Method

Definition

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

public:
 virtual bool IsSupersetOf(System::Collections::Generic::IEnumerable<T> ^ other);
public bool IsSupersetOf (System.Collections.Generic.IEnumerable<T> other);
abstract member IsSupersetOf : seq<'T> -> bool
override this.IsSupersetOf : seq<'T> -> bool
Public Function IsSupersetOf (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 superset of other; otherwise, false.

Implements

Remarks

All collections, including empty sets, are supersets of an empty set. Therefore, this method returns true if the collection represented by the other parameter is empty, even if the current sorted set is empty.

System.Collections.Immutable NuGet package

About immutable collections and how to install

Applies to