ImmutableList.ToImmutableList Método

Definición

Sobrecargas

ToImmutableList<TSource>(IEnumerable<TSource>)

Enumera una secuencia y genera una lista inmutable de su contenido.

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

Crea una lista inmutable a partir del contenido de la colección del generador.

ToImmutableList<TSource>(IEnumerable<TSource>)

Enumera una secuencia y genera una lista inmutable de su contenido.

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)

Parámetros de tipo

TSource

Tipo de los elementos de la secuencia.

Parámetros

source
IEnumerable<TSource>

Secuencia que se va a enumerar.

Devoluciones

ImmutableList<TSource>

Lista inmutable que contiene los elementos en la secuencia especificada.

Se aplica a

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

Crea una lista inmutable a partir del contenido de la colección del generador.

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)

Parámetros de tipo

TSource

Tipo de los elementos de la lista.

Parámetros

builder
ImmutableList<TSource>.Builder

Generador desde el que se va a crear la lista inmutable.

Devoluciones

ImmutableList<TSource>

Lista inmutable que incluye el contenido actual de la colección del generador.

Se aplica a