ImmutableArray<T>.CastArray<TOther> メソッド

定義

基になる配列を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>

要素が新しい型にキャストされた変更できない配列インスタンス。

例外

キャストは無効です。

適用対象