ImmutableArray<T>.CastArray<TOther> Metoda

Definicja

Inicjuje ImmutableArray<T> nowe wystąpienie struktury, rzutując tablicę bazową na tablicę typu 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)

Parametry typu

TOther

Typ elementu tablicy do zwrócenia.

Zwraca

ImmutableArray<TOther>

Niezmienne wystąpienie tablicy z elementami rzutowymi na nowy typ.

Wyjątki

Obsada jest nielegalna.

Dotyczy