Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImmutableHashSet Class

 

Provides a set of initialization methods for instances of the ImmutableHashSet<T> class.

NuGet package: System.Collections.Immutable (about immutable collections and how to install)

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

System::Object
  System.Collections.Immutable::ImmutableHashSet

[ExtensionAttribute]
public ref class ImmutableHashSet abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreate<T>()

Creates an empty immutable hash set.

System_CAPS_pubmethodSystem_CAPS_staticCreate<T>(T)

Creates a new immutable hash set that contains the specified item.

System_CAPS_pubmethodSystem_CAPS_staticCreate<T>(array<T>^)

Creates a new immutable hash set that contains the specified array of items.

System_CAPS_pubmethodSystem_CAPS_staticCreate<T>(IEqualityComparer<T>^)

Creates an empty immutable hash set that uses the specified equality comparer.

System_CAPS_pubmethodSystem_CAPS_staticCreate<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.

System_CAPS_pubmethodSystem_CAPS_staticCreate<T>(IEqualityComparer<T>^, array<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.

System_CAPS_pubmethodSystem_CAPS_staticCreateBuilder<T>()

Creates a new immutable hash set builder.

System_CAPS_pubmethodSystem_CAPS_staticCreateBuilder<T>(IEqualityComparer<T>^)

Creates a new immutable hash set builder.

System_CAPS_pubmethodSystem_CAPS_staticCreateRange<T>(IEnumerable<T>^)

Creates a new immutable hash set prefilled with the specified items.

System_CAPS_pubmethodSystem_CAPS_staticCreateRange<T>(IEqualityComparer<T>^, IEnumerable<T>^)

Creates a new immutable hash set that contains the specified items and uses the specified equality comparer for the set type.

System_CAPS_pubmethodSystem_CAPS_staticToImmutableHashSet<TSource>(IEnumerable<TSource>^)

Enumerates a sequence and produces an immutable hash set of its contents.

System_CAPS_pubmethodSystem_CAPS_staticToImmutableHashSet<TSource>(IEnumerable<TSource>^, IEqualityComparer<TSource>^)

Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.

This type is thread safe.

Return to top
Show:
© 2017 Microsoft