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
)
Public Function IsSubsetOf (
other As IEnumerable(Of T)
) As Boolean
public:
bool IsSubsetOf(
IEnumerable<T>^ other
)
member IsSubsetOf :
other : IEnumerable<'T> -> bool
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:
Booleantrue if this is a subset of other; false if not
See Also