ImmutableList.ToImmutableList Metódus

Definíció

Túlterhelések

Name Description
ToImmutableList<TSource>(IEnumerable<TSource>)

Számba ad egy sorozatot, és megváltoztathatatlan listát hoz létre annak tartalmáról.

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

Módosíthatatlan listát hoz létre a szerkesztő gyűjteményének aktuális tartalmából.

ToImmutableList<TSource>(IEnumerable<TSource>)

Forrás:
ImmutableList.cs
Forrás:
ImmutableList.cs
Forrás:
ImmutableList.cs
Forrás:
ImmutableList.cs
Forrás:
ImmutableList.cs
Forrás:
ImmutableList.cs

Számba ad egy sorozatot, és megváltoztathatatlan listát hoz létre annak tartalmáról.

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)

Típusparaméterek

TSource

A sorozat elemeinek típusa.

Paraméterek

source
IEnumerable<TSource>

Az enumerálni kívánt sorozat.

Válaszok

ImmutableList<TSource>

Nem módosítható lista, amely a megadott sorozat elemeit tartalmazza.

A következőre érvényes:

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

Forrás:
ImmutableList.cs
Forrás:
ImmutableList.cs
Forrás:
ImmutableList.cs
Forrás:
ImmutableList.cs
Forrás:
ImmutableList.cs
Forrás:
ImmutableList.cs

Módosíthatatlan listát hoz létre a szerkesztő gyűjteményének aktuális tartalmából.

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)

Típusparaméterek

TSource

A lista elemeinek típusa.

Paraméterek

builder
ImmutableList<TSource>.Builder

A módosíthatatlan listát létrehozó szerkesztő.

Válaszok

ImmutableList<TSource>

Nem módosítható lista, amely a szerkesztő gyűjteményének aktuális tartalmát tartalmazza.

A következőre érvényes: