ImmutableArray.ToImmutableArray ImmutableArray.ToImmutableArray ImmutableArray.ToImmutableArray ImmutableArray.ToImmutableArray Method

Definição

Sobrecargas

ToImmutableArray<TSource>(IEnumerable<TSource>) ToImmutableArray<TSource>(IEnumerable<TSource>) ToImmutableArray<TSource>(IEnumerable<TSource>) ToImmutableArray<TSource>(IEnumerable<TSource>)

Cria uma matriz imutável com base na coleção especificada.Creates an immutable array from the specified collection.

ToImmutableArray<TSource>(ImmutableArray<TSource>) ToImmutableArray<TSource>(ImmutableArray<TSource>) ToImmutableArray<TSource>(ImmutableArray<TSource>)

ToImmutableArray<TSource>(IEnumerable<TSource>) ToImmutableArray<TSource>(IEnumerable<TSource>) ToImmutableArray<TSource>(IEnumerable<TSource>) ToImmutableArray<TSource>(IEnumerable<TSource>)

Cria uma matriz imutável com base na coleção especificada.Creates an immutable array from the specified collection.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<TSource> ToImmutableArray(System::Collections::Generic::IEnumerable<TSource> ^ items);
public static System.Collections.Immutable.ImmutableArray<TSource> ToImmutableArray<TSource> (this System.Collections.Generic.IEnumerable<TSource> items);
static member ToImmutableArray : seq<'Source> -> System.Collections.Immutable.ImmutableArray<'Source>
<Extension()>
Public Function ToImmutableArray(Of TSource) (items As IEnumerable(Of TSource)) As ImmutableArray(Of TSource)

Parâmetros de tipo

TSource

O tipo dos elementos contidos no items.The type of elements contained in items.

Parâmetros

items
IEnumerable<TSource>

A coleção de objetos a serem copiados na matriz imutável.The collection of objects to copy to the immutable array.

Retornos

ImmutableArray<TSource>

Uma matriz imutável que contém a coleção especificada de objetos.An immutable array that contains the specified collection of objects.

ToImmutableArray<TSource>(ImmutableArray<TSource>) ToImmutableArray<TSource>(ImmutableArray<TSource>) ToImmutableArray<TSource>(ImmutableArray<TSource>)

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<TSource> ToImmutableArray(System::Collections::Immutable::ImmutableArray<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableArray<TSource> ToImmutableArray<TSource> (this System.Collections.Immutable.ImmutableArray<TSource>.Builder builder);
static member ToImmutableArray : System.Collections.Immutable.ImmutableArray<'Source>.Builder -> System.Collections.Immutable.ImmutableArray<'Source>

Parâmetros de tipo

TSource

Parâmetros

builder
ImmutableArray<TSource>.Builder

Retornos

ImmutableArray<TSource>

Aplica-se a