Click or drag to resize

VelocityDbHashSetTIsSubsetOf Method

Checks if this is a subset of other. Implementation Notes: The following properties are used up-front to avoid element-wise checks: 1. If this is the empty set, then it's a subset of anything, including the empty set 2. If other has unique elements according to this equality comparer, and this has more elements than other, then it can't be a subset. Furthermore, if other is a hashset using the same 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 IsSubsetOf(
	IEnumerable<T> other
)

Parameters

other
Type: System.Collections.GenericIEnumerableT

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

Return Value

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