ImmutableSortedSet.ToImmutableSortedSet Metoda
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
ToImmutableSortedSet<TSource>(IEnumerable<TSource>) |
Wylicza sekwencję i tworzy niezmienialny zestaw posortowany jego zawartości. |
ToImmutableSortedSet<TSource>(ImmutableSortedSet<TSource>.Builder) |
Tworzy niezmienialny zestaw posortowany na podstawie bieżącej zawartości zestawu konstruktora. |
ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>) |
Wylicza sekwencję, tworzy niezmienialny zestaw posortowany jego zawartości i używa określonego porównania. |
- Źródło:
- ImmutableSortedSet.cs
- Źródło:
- ImmutableSortedSet.cs
- Źródło:
- ImmutableSortedSet.cs
Wylicza sekwencję i tworzy niezmienialny zestaw posortowany jego zawartości.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedSet<TSource> ^ ToImmutableSortedSet(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);
static member ToImmutableSortedSet : seq<'Source> -> System.Collections.Immutable.ImmutableSortedSet<'Source>
<Extension()>
Public Function ToImmutableSortedSet(Of TSource) (source As IEnumerable(Of TSource)) As ImmutableSortedSet(Of TSource)
Parametry typu
- TSource
Typ elementów w sekwencji.
Parametry
- source
- IEnumerable<TSource>
Sekwencja do wyliczenia.
Zwraca
Niezmienialny zestaw posortowany zawierający elementy w określonej sekwencji.
Dotyczy
.NET 9 i inne wersje
Produkt | Wersje |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
UWP | 10.0 |
- Źródło:
- ImmutableSortedSet.cs
- Źródło:
- ImmutableSortedSet.cs
- Źródło:
- ImmutableSortedSet.cs
Tworzy niezmienialny zestaw posortowany na podstawie bieżącej zawartości zestawu konstruktora.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedSet<TSource> ^ ToImmutableSortedSet(System::Collections::Immutable::ImmutableSortedSet<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Immutable.ImmutableSortedSet<TSource>.Builder builder);
static member ToImmutableSortedSet : System.Collections.Immutable.ImmutableSortedSet<'Source>.Builder -> System.Collections.Immutable.ImmutableSortedSet<'Source>
<Extension()>
Public Function ToImmutableSortedSet(Of TSource) (builder As ImmutableSortedSet(Of TSource).Builder) As ImmutableSortedSet(Of TSource)
Parametry typu
- TSource
Typ elementów w niezmienialnym zestawie posortowanych.
Parametry
- builder
- ImmutableSortedSet<TSource>.Builder
Konstruktor tworzy niezmienny zestaw posortowany na podstawie.
Zwraca
Niezmienialny zestaw posortowany zawierający bieżącą zawartość w zestawie konstruktora.
Dotyczy
.NET 9 i inne wersje
Produkt | Wersje |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
- Źródło:
- ImmutableSortedSet.cs
- Źródło:
- ImmutableSortedSet.cs
- Źródło:
- ImmutableSortedSet.cs
Wylicza sekwencję, tworzy niezmienialny zestaw posortowany jego zawartości i używa określonego porównania.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedSet<TSource> ^ ToImmutableSortedSet(System::Collections::Generic::IEnumerable<TSource> ^ source, System::Collections::Generic::IComparer<TSource> ^ comparer);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IComparer<TSource> comparer);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IComparer<TSource>? comparer);
static member ToImmutableSortedSet : seq<'Source> * System.Collections.Generic.IComparer<'Source> -> System.Collections.Immutable.ImmutableSortedSet<'Source>
<Extension()>
Public Function ToImmutableSortedSet(Of TSource) (source As IEnumerable(Of TSource), comparer As IComparer(Of TSource)) As ImmutableSortedSet(Of TSource)
Parametry typu
- TSource
Typ elementów w sekwencji.
Parametry
- source
- IEnumerable<TSource>
Sekwencja do wyliczenia.
- comparer
- IComparer<TSource>
Moduł porównujący używany do inicjowania i dodawania elementów członkowskich do posortowanego zestawu.
Zwraca
Niezmienialny zestaw posortowany zawierający elementy w określonej sekwencji.
Dotyczy
.NET 9 i inne wersje
Produkt | Wersje |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
UWP | 10.0 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: