ISet<T>.IsSubsetOf(IEnumerable<T>) Método
Definição
Determina se o conjunto é um subconjunto de uma coleção especificada.Determines whether a set is a subset of a specified collection.
public:
bool IsSubsetOf(System::Collections::Generic::IEnumerable<T> ^ other);
public bool IsSubsetOf (System.Collections.Generic.IEnumerable<T> other);
abstract member IsSubsetOf : seq<'T> -> bool
Public Function IsSubsetOf (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 subconjunto de other; caso contrário, false.true if the current set is a subset of other; otherwise, false.
Exceções
other é null.other is null.
Comentários
Se other contiver os mesmos elementos que o conjunto atual, o conjunto atual ainda será considerado um subconjunto de outros.If other contains the same elements as the current set, the current set is still considered a subset of other.
Esse método sempre retorna false se o conjunto atual tiver elementos que não estão no other .This method always returns false if the current set has elements that are not in other.