ImmutableList.ToImmutableList Método

Definição

Sobrecargas

ToImmutableList<TSource>(IEnumerable<TSource>)

Enumera uma sequência e produz uma lista imutável de seu conteúdo.Enumerates a sequence and produces an immutable list of its contents.

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

Cria uma lista imutável do conteúdo atual da coleção do construtor.Creates an immutable list from the current contents of the builder's collection.

ToImmutableList<TSource>(IEnumerable<TSource>)

Enumera uma sequência e produz uma lista imutável de seu conteúdo.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)

Parâmetros de tipo

TSource

O tipo dos elementos na sequência.The type of the elements in the sequence.

Parâmetros

source
IEnumerable<TSource>

A sequência a ser enumerada.The sequence to enumerate.

Retornos

ImmutableList<TSource>

Uma lista imutável que contém os itens na sequência especificada.An immutable list that contains the items in the specified sequence.

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

Cria uma lista imutável do conteúdo atual da coleção do construtor.Creates an immutable list from the current contents of the builder's collection.

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

O tipo dos elementos na lista.The type of the elements in the list.

Parâmetros

builder
ImmutableList<TSource>.Builder

O construtor para o qual criar a lista imutável.The builder to create the immutable list from.

Retornos

ImmutableList<TSource>

Cria uma lista imutável preenchida com o conteúdo atual da coleção do construtor.An immutable list that contains the current contents in the builder's collection.

Aplica-se a