ImmutableArray<T>::CastUp<TDerived> Method (ImmutableArray<TDerived>)
Initializes a new instance of the ImmutableArray<T> struct based on the contents of an existing instance, allowing a covariant static cast to efficiently reuse the existing array.
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
public: generic<typename TDerived> where TDerived : ref class, T static ImmutableArray<T> CastUp( ImmutableArray<TDerived> items )
Parameters
- items
-
Type:
System.Collections.Immutable::ImmutableArray<TDerived>
The array to initialize the array with. No copy is made.
Return Value
Type: System.Collections.Immutable::ImmutableArray<T>Type Parameters
- TDerived
Covariant upcasts from this method may be reversed by calling the As<TOther> or CastArray<TOther>method.
Show: