ImmutableList.ToImmutableList 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.
ToImmutableList<TSource>(IEnumerable<TSource>) |
Wylicza sekwencję i tworzy niezmienną listę jej zawartości. |
ToImmutableList<TSource>(ImmutableList<TSource>.Builder) |
Tworzy niezmienną listę na podstawie bieżącej zawartości kolekcji konstruktora. |
- Źródło:
- ImmutableList.cs
- Źródło:
- ImmutableList.cs
- Źródło:
- ImmutableList.cs
Wylicza sekwencję i tworzy niezmienną listę jej zawartości.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableList<TSource> ^ ToImmutableList(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);
static member ToImmutableList : seq<'Source> -> System.Collections.Immutable.ImmutableList<'Source>
<Extension()>
Public Function ToImmutableList(Of TSource) (source As IEnumerable(Of TSource)) As ImmutableList(Of TSource)
Parametry typu
- TSource
Typ elementów w sekwencji.
Parametry
- source
- IEnumerable<TSource>
Sekwencja do wyliczenia.
Zwraca
Niezmienna lista zawierająca 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:
- ImmutableList.cs
- Źródło:
- ImmutableList.cs
- Źródło:
- ImmutableList.cs
Tworzy niezmienną listę na podstawie bieżącej zawartości kolekcji konstruktora.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableList<TSource> ^ ToImmutableList(System::Collections::Immutable::ImmutableList<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource> (this System.Collections.Immutable.ImmutableList<TSource>.Builder builder);
static member ToImmutableList : System.Collections.Immutable.ImmutableList<'Source>.Builder -> System.Collections.Immutable.ImmutableList<'Source>
<Extension()>
Public Function ToImmutableList(Of TSource) (builder As ImmutableList(Of TSource).Builder) As ImmutableList(Of TSource)
Parametry typu
- TSource
Typ elementów na liście.
Parametry
- builder
- ImmutableList<TSource>.Builder
Konstruktor do utworzenia niezmiennej listy na podstawie.
Zwraca
Niezmienna lista zawierająca bieżącą zawartość w kolekcji konstruktora.
Dotyczy
.NET 9 i inne wersje
Produkt | Wersje |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: