FrozenSet Class

Definition

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

C#
public static class FrozenSet
Inheritance
FrozenSet

Methods

Create<T>(IEqualityComparer<T>, ReadOnlySpan<T>)

Creates a FrozenSet<T> with the specified values.

Create<T>(ReadOnlySpan<T>)

Creates a FrozenSet<T> with the specified values.

ToFrozenSet<T>(IEnumerable<T>, IEqualityComparer<T>)

Creates a FrozenSet<T> with the specified values.

Applies to

Product Versions
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)