ImmutableArray<T>.CastArray<TOther> Metode

Definisi

Menginisialisasi instans ImmutableArray<T> baru struktur dengan mentransmisikan array yang mendasar ke array jenis 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)

Jenis parameter

TOther

Jenis elemen array yang akan dikembalikan.

Mengembalikan

ImmutableArray<TOther>

Instans array yang tidak dapat diubah dengan elemen yang ditransmisikan ke jenis baru.

Pengecualian

Pemerannya ilegal.

Berlaku untuk