ImmutableArray<T>.CastArray<TOther> Methode

Definitie

Initialiseert een nieuw exemplaar van de ImmutableArray<T> struct door de onderliggende matrix naar een matrix van het type TOtherte gieten.

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)

Type parameters

TOther

Het type matrixelement dat moet worden geretourneerd.

Retouren

ImmutableArray<TOther>

Een onveranderbaar matrixexemplaren met elementen die naar het nieuwe type worden gecast.

Uitzonderingen

De cast is illegaal.

Van toepassing op