SortedSet<T>.IsProperSupersetOf(IEnumerable<T>) Método
Definição
Determina se um objeto SortedSet<T> é um superconjunto apropriado da coleção especificada.Determines whether a SortedSet<T> object is a proper superset of the specified collection.
public:
virtual bool IsProperSupersetOf(System::Collections::Generic::IEnumerable<T> ^ other);
public bool IsProperSupersetOf (System.Collections.Generic.IEnumerable<T> other);
abstract member IsProperSupersetOf : seq<'T> -> bool
override this.IsProperSupersetOf : seq<'T> -> bool
Public Function IsProperSupersetOf (other As IEnumerable(Of T)) As Boolean
Parâmetros
- other
- IEnumerable<T>
A coleção a ser comparada com o objeto SortedSet<T> atual.The collection to compare to the current SortedSet<T> object.
Retornos
true se o objeto SortedSet<T> for um superconjunto apropriado de other; caso contrário, false.true if the SortedSet<T> object is a proper superset of other; otherwise, false.
Implementações
Exceções
other é null.other is null.
Comentários
Um conjunto vazio é um superconjunto adequado de qualquer outra coleção.An empty set is a proper superset of any other collection. Portanto, esse método retornará true se a coleção representada pelo other parâmetro estiver vazia, a menos que a SortedSet<T> coleção atual também esteja vazia.Therefore, this method returns true if the collection represented by the other parameter is empty unless the current SortedSet<T> collection is also empty.
Esse método sempre retorna false se Count for menor ou igual ao número de elementos em other .This method always returns false if Count is less than or equal to the number of elements in other.
Se a coleção representada por other for uma SortedSet<T> coleção com o mesmo comparador de igualdade que o SortedSet<T> objeto atual, esse método será uma O(n) operação.If the collection represented by other is a SortedSet<T> collection with the same equality comparer as the current SortedSet<T> object, this method is an O(n) operation. Caso contrário, esse método é uma O(n + m) operação, em que n é o número de elementos no other e m é Count .Otherwise, this method is an O(n + m) operation, where n is the number of elements in other and m is Count.