ImmutableArray<T>.CastArray<TOther> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
Instance de tableau immuable avec des éléments convertis en nouveau type.
Exceptions
Le cast est illégal.