ImmutableArray<T>::CastArray<TOther> Method ()

 

Initializes a new instance of the ImmutableArray<T> struct by casting the underlying array to an array of type

TOther
.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
generic<typename TOther>
where TOther : ref class
ImmutableArray<TOther> CastArray()

Type Parameters

TOther

Exception Condition
InvalidCastException

Thrown if the cast is illegal.

Return to top
Show: