Click or drag to resize

VelocityDbHashSetTIsProperSupersetOf Method

Checks if this is a proper superset of other (i.e. other strictly contained in this) Implementation Notes: This is slightly more complicated than above because we have to keep track if there was at least one element not contained in other. The following properties are used up-front to avoid element-wise checks: 1. If this is the empty set, then it can't be a proper superset of any set, even if other is the empty set. 2. If other is an empty set and this contains at least 1 element, then this is a proper superset. 3. If other has unique elements according to this equality comparer, and other's count is greater than or equal to this count, then this can't be a proper superset Furthermore, if other has unique elements according to this equality comparer, we can use a faster element-wise check.

Namespace:  VelocityDb.Collection
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public bool IsProperSupersetOf(
	IEnumerable<T> other
)

Parameters

other
Type: System.Collections.GenericIEnumerableT

[Missing <param name="other"/> documentation for "M:VelocityDb.Collection.VelocityDbHashSet`1.IsProperSupersetOf(System.Collections.Generic.IEnumerable{`0})"]

Return Value

Type: Boolean
true if this is a proper superset of other; false if not
See Also