ImmutableArray.ToImmutableArray Método

Definición

Sobrecargas

ToImmutableArray<T>(ReadOnlySpan<T>)

Genera una matriz inmutable de contenido a partir de elementos especificados.

ToImmutableArray<T>(Span<T>)

Convierte el intervalo en una matriz inmutable.

ToImmutableArray<TSource>(IEnumerable<TSource>)

Crea una matriz inmutable a partir de la colección especificada.

ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder)

Crea una matriz inmutable a partir del contenido de la matriz del generador.

ToImmutableArray<T>(ReadOnlySpan<T>)

Genera una matriz inmutable de contenido a partir de elementos especificados.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<T> ToImmutableArray(ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableArray<T> ToImmutableArray<T> (this ReadOnlySpan<T> items);
static member ToImmutableArray : ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableArray<'T>
<Extension()>
Public Function ToImmutableArray(Of T) (items As ReadOnlySpan(Of T)) As ImmutableArray(Of T)

Parámetros de tipo

T

Tipo de elemento de la lista.

Parámetros

items
ReadOnlySpan<T>

Elementos que se van a almacenar en la matriz.

Devoluciones

ImmutableArray<T>

Matriz inmutable que contiene los elementos del intervalo.

Se aplica a

ToImmutableArray<T>(Span<T>)

Convierte el intervalo en una matriz inmutable.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<T> ToImmutableArray(Span<T> items);
public static System.Collections.Immutable.ImmutableArray<T> ToImmutableArray<T> (this Span<T> items);
static member ToImmutableArray : Span<'T> -> System.Collections.Immutable.ImmutableArray<'T>
<Extension()>
Public Function ToImmutableArray(Of T) (items As Span(Of T)) As ImmutableArray(Of T)

Parámetros de tipo

T

Tipo de elemento de la lista.

Parámetros

items
Span<T>

Elementos que se van a almacenar en la matriz.

Devoluciones

ImmutableArray<T>

Matriz inmutable que contiene los elementos del intervalo.

Se aplica a

ToImmutableArray<TSource>(IEnumerable<TSource>)

Crea una matriz inmutable a partir de la colección especificada.

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.

Parámetros

items
IEnumerable<TSource>

Colección de objetos que se copiarán en la matriz inmutable.

Devoluciones

ImmutableArray<TSource>

Matriz inmutable que contiene la colección especificada de objetos.

Se aplica a

ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder)

Crea una matriz inmutable a partir del contenido de la matriz del generador.

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>
<Extension()>
Public Function ToImmutableArray(Of TSource) (builder As ImmutableArray(Of TSource).Builder) As ImmutableArray(Of TSource)

Parámetros de tipo

TSource

Tipo de elementos contenidos en la matriz inmutable.

Parámetros

builder
ImmutableArray<TSource>.Builder

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

Devoluciones

ImmutableArray<TSource>

Matriz inmutable que incluye el contenido actual de la matriz del generador.

Se aplica a