ImmutableArray<T>.CastArray<TOther> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
基になる配列をImmutableArray<T>型の配列にキャストして、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)
型パラメーター
- TOther
返す配列要素の型。
返品
ImmutableArray<TOther>
要素が新しい型にキャストされた変更できない配列インスタンス。
例外
キャストは無効です。