Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


FrozenSet.ToFrozenSet<T> Method

Definition

Creates a FrozenSet<T> with the specified values.

public static System.Collections.Frozen.FrozenSet<T> ToFrozenSet<T> (this System.Collections.Generic.IEnumerable<T> source, System.Collections.Generic.IEqualityComparer<T>? comparer = default);

Type Parameters

T

The type of the values in the set.

Parameters

source
IEnumerable<T>

The values to use to populate the set.

comparer
IEqualityComparer<T>

The comparer implementation to use to compare values for equality. If null, Default is used.

Returns

A frozen set.

Applies to

Προϊόν Εκδόσεις
.NET 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)