FrozenSet.ToFrozenSet<T> Method
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.
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);
static member ToFrozenSet : seq<'T> * System.Collections.Generic.IEqualityComparer<'T> -> System.Collections.Frozen.FrozenSet<'T>
<Extension()>
Public Function ToFrozenSet(Of T) (source As IEnumerable(Of T), Optional comparer As IEqualityComparer(Of T) = Nothing) As FrozenSet(Of T)
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
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.