API reference
API reference
Select your platform
No SDKs available
No versions available

HashSetExtensions Class

Non-allocating HashSet extension methods mirroring MS implementation https://referencesource.microsoft.com/#system.core/system/Collections/Generic/HashSet.cs.

Static Member Functions

Take the union of this HashSet with other.
Modifies this set.
Parameters
other
HashSet with items to add
Take the union of this HashSet with other.
Modifies this set.
Parameters
other
IList with items to add
Remove items in other from this set.
Modifies this set
Parameters
other
HashSet with items to remove
Remove items in other from this set.
Modifies this set
Parameters
other
IList with items to remove
Checks if this set overlaps other (i.e.
they share at least one item)
Parameters
other
HashSet to check overlap against
Returns
true if these have at least one common element; false if disjoint
Checks if this set overlaps other (i.e.
they share at least one item)
Parameters
other
IList to check overlap against
Returns
true if these have at least one common element; false if disjoint
Did you find this page helpful?
Thumbs up icon
Thumbs down icon