ImmutableArray<T>.CastArray<TOther> Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Inicializa uma nova instância da ImmutableArray<T> estrutura ao lançar o array subjacente para um array do 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 Genérico
- TOther
O tipo de elemento do array a devolver.
Devoluções
Uma instância de array imutável com elementos lançados para o novo tipo.
Exceções
O elenco é ilegal.