ImmutableArray<T>.CastArray<TOther> Méthode

Définition

Initialise une nouvelle instance du ImmutableArray<T> struct en cas de conversion du tableau sous-jacent en tableau de type 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)

Paramètres de type

TOther

Type d’élément de tableau à retourner.

Retours

ImmutableArray<TOther>

Instance de tableau immuable avec des éléments convertis en nouveau type.

Exceptions

Le cast est illégal.

S’applique à