ImmutableSortedSet<T>.IsProperSubsetOf(IEnumerable<T>) Метод
Определение
Определяет, является ли текущий неизменяемый отсортированный набор должным (строгим) подмножеством заданной коллекции.Determines whether the current immutable sorted set is a proper (strict) subset of the specified collection.
public:
virtual bool IsProperSubsetOf(System::Collections::Generic::IEnumerable<T> ^ other);
public bool IsProperSubsetOf (System.Collections.Generic.IEnumerable<T> other);
abstract member IsProperSubsetOf : seq<'T> -> bool
override this.IsProperSubsetOf : seq<'T> -> bool
Public Function IsProperSubsetOf (other As IEnumerable(Of T)) As Boolean
Параметры
- other
- IEnumerable<T>
Коллекция для сравнения с текущим набором.The collection to compare to the current set.
Возвращаемое значение
Значение true
, если текущий набор является строгим подмножеством объекта other
; в противном случае — значение false
.true
if the current set is a proper subset of other
; otherwise, false
.
Реализации
Комментарии
Пустой набор является соответствующим подмножеством любой другой коллекции.An empty set is a proper subset of any other collection. Поэтому этот метод возвращает true
значение, если текущий набор пуст, за исключением случаев, когда other
Коллекция также пуста.Therefore, this method returns true
if the current set is empty, unless the other
collection is also empty.
System. Collections. неизменяемый пакет NuGetSystem.Collections.Immutable NuGet package
О неизменяемых коллекциях и о том, как установитьAbout immutable collections and how to install