ImmutableList.ToImmutableList ImmutableList.ToImmutableList ImmutableList.ToImmutableList ImmutableList.ToImmutableList Method

Definizione

Overload

ToImmutableList<TSource>(IEnumerable<TSource>) ToImmutableList<TSource>(IEnumerable<TSource>) ToImmutableList<TSource>(IEnumerable<TSource>) ToImmutableList<TSource>(IEnumerable<TSource>)

Enumera una sequenza e produce un elenco non modificabile del relativo contenuto.Enumerates a sequence and produces an immutable list of its contents.

ToImmutableList<TSource>(ImmutableList<TSource>) ToImmutableList<TSource>(ImmutableList<TSource>) ToImmutableList<TSource>(ImmutableList<TSource>)

ToImmutableList<TSource>(IEnumerable<TSource>) ToImmutableList<TSource>(IEnumerable<TSource>) ToImmutableList<TSource>(IEnumerable<TSource>) ToImmutableList<TSource>(IEnumerable<TSource>)

Enumera una sequenza e produce un elenco non modificabile del relativo contenuto.Enumerates a sequence and produces an immutable list of its contents.

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)

Parametri di tipo

TSource

Tipo degli elementi nella sequenza.The type of the elements in the sequence.

Parametri

source
IEnumerable<TSource>

Sequenza da enumerare.The sequence to enumerate.

Restituisce

ImmutableList<TSource>

Elenco non modificabile che contiene gli elementi nella sequenza specificata.An immutable list that contains the items in the specified sequence.

ToImmutableList<TSource>(ImmutableList<TSource>) ToImmutableList<TSource>(ImmutableList<TSource>) ToImmutableList<TSource>(ImmutableList<TSource>)

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>

Parametri di tipo

TSource

Parametri

builder
ImmutableList<TSource>.Builder

Restituisce

ImmutableList<TSource>

Si applica a