ImmutableArray<T>.CastArray<TOther> Método

Definición

Inicializa una instancia nueva de la estructura ImmutableArray<T> al convertir la matriz subyacente en una matriz de tipo TOther.

C#
public System.Collections.Immutable.ImmutableArray<TOther> CastArray<TOther> () where TOther : class;

Parámetros de tipo

TOther

Tipo de elemento de matriz para devolver.

Devoluciones

ImmutableArray<TOther>

Una instancia de matriz inmutable con elementos convertidos al nuevo tipo.

Excepciones

La conversión es ilegal.

Se aplica a

Producto Versiones
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
UWP 10.0