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

Definición

Inicializa una nueva instancia de la ImmutableArray<T> estructura mediante la conversión de la matriz subyacente a una matriz de tipo TOther.

public:
generic <typename TOther>
 where TOther : class System::Collections::Immutable::ImmutableArray<TOther> CastArray();
public System.Collections.Immutable.ImmutableArray<TOther> CastArray<TOther>() where TOther : class;
member this.CastArray : unit -> System.Collections.Immutable.ImmutableArray<'Other (requires 'Other : null)> (requires 'Other : null)
Public Function CastArray(Of TOther As Class) () As ImmutableArray(Of TOther)

Parámetros de tipo

TOther

Tipo de elemento de matriz que se va a devolver.

Devoluciones

ImmutableArray<TOther>

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

Excepciones

La conversión es ilegal.

Se aplica a