ImmutableArray<T>.CastArray<TOther> Metoda

Definice

Inicializuje novou instanci ImmutableArray<T> struktury přetypováním podkladového pole na pole 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 prvku pole, který se má vrátit.

Návraty

ImmutableArray<TOther>

Neměnná instance pole s prvky přetypenými na nový typ.

Výjimky

Přetypování je nezákonné.

Platí pro