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

 

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

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public bool IsProperSupersetOf(
	IEnumerable<T> other
)

Parameters

other
Type: System.Collections.Generic.IEnumerable<T>

The collection to compare to the current set.

Return Value

Type: System.Boolean

true if the current set is a proper superset of other; otherwise, false.

An empty set is a proper superset of any other collection. Therefore, this method returns true if the collection represented by the other parameter is empty, unless the current set is also empty.

NuGet package: System.Collections.Immutable (about immutable collections and how to install)

Return to top
Show: