ImmutableSortedSet<T>.IsSupersetOf(IEnumerable<T>) Método
Definição
Determina se o conjunto classificado imutável atual é um superconjunto de uma coleção especificada.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
Parâmetros
- other
- IEnumerable<T>
A coleção a ser comparada com o conjunto atual.The collection to compare to the current set.
Retornos
true se o conjunto atual for um superconjunto de other; caso contrário, false.true if the current set is a superset of other; otherwise, false.
Implementações
Comentários
Todas as coleções, incluindo conjuntos vazios, são subconjuntos de um conjunto vazio.All collections, including empty sets, are supersets of an empty set. Portanto, esse método retornará true se a coleção representada pelo other parâmetro estiver vazia, mesmo se o conjunto classificado atual estiver vazio.Therefore, this method returns true if the collection represented by the other parameter is empty, even if the current sorted set is empty.
Pacote NuGet System. Collections. imutávelSystem.Collections.Immutable NuGet package
Sobre coleções imutáveis e como instalarAbout immutable collections and how to install