ImmutableList.ToImmutableList Metoda

Definicja

Przeciążenia

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.

ToImmutableList<TSource>(IEnumerable<TSource>)

Ź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

ImmutableList<TSource>

Niezmienna lista zawierająca elementy w określonej sekwencji.

Dotyczy

ToImmutableList<TSource>(ImmutableList<TSource>.Builder)

Ź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

ImmutableList<TSource>

Niezmienna lista zawierająca bieżącą zawartość w kolekcji konstruktora.

Dotyczy