ImmutableArray<T>.CastArray<TOther> 메서드

정의

기본 배열을 TOther 형식의 배열로 캐스팅하여 ImmutableArray<T> 구조체의 새 인스턴스를 초기화합니다.

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>

요소가 새 형식으로 캐스팅된 변경 불가능한 배열 인스턴스입니다.

예외

캐스트는 불법입니다.

적용 대상