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

Definición

Sobrecargas

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

Crea una matriz inmutable a partir de la colección 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>)

Crea una matriz inmutable a partir de la colección 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

Tipo de elementos contenidos en items.The type of elements contained in items.

Parámetros

items
IEnumerable<TSource>

Colección de objetos que se copiarán en la matriz inmutable.The collection of objects to copy to the immutable array.

Devoluciones

ImmutableArray<TSource>

Matriz inmutable que contiene la colección 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

Devoluciones

ImmutableArray<TSource>

Se aplica a