ImmutableArray<T>.CastArray<TOther> Metod

Definition

Initierar en ny instans av struct genom ImmutableArray<T> att den underliggande matrisen konverteras till en matris av typen 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)

Typparametrar

TOther

Vilken typ av matriselement som ska returneras.

Returer

ImmutableArray<TOther>

En oföränderlig matrisinstans med element som skickas till den nya typen.

Undantag

Skådespelarna är olagliga.

Gäller för