ImmutableHashSet Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a set of initialization methods for instances of the ImmutableHashSet<T> class.
public ref class ImmutableHashSet abstract sealed
public static class ImmutableHashSet
type ImmutableHashSet = class
Public Module ImmutableHashSet
- Inheritance
-
ImmutableHashSet
Methods
| Name | Description |
|---|---|
| Create<T>() |
Creates an empty immutable hash set. |
| Create<T>(IEqualityComparer<T>, ReadOnlySpan<T>) |
Creates a new immutable collection prefilled with the specified items. |
| Create<T>(IEqualityComparer<T>, T) |
Creates a new immutable hash set that contains the specified item and uses the specified equality comparer for the set type. |
| Create<T>(IEqualityComparer<T>, T[]) |
Creates a new immutable hash set that contains the items in the specified collection and uses the specified equality comparer for the set type. |
| Create<T>(IEqualityComparer<T>) |
Creates an empty immutable hash set that uses the specified equality comparer. |
| Create<T>(ReadOnlySpan<T>) |
Creates a new immutable collection prefilled with the specified items. |
| Create<T>(T) |
Creates a new immutable hash set that contains the specified item. |