ImmutableArrayExtensions.ToArray<T>(ImmutableArray<T>) 方法

定义

将此数组的内容复制到不可变数组。Copies the contents of this array to a mutable array.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static cli::array <T> ^ ToArray(System::Collections::Immutable::ImmutableArray<T> immutableArray);
public static T[] ToArray<T> (this System.Collections.Immutable.ImmutableArray<T> immutableArray);
static member ToArray : System.Collections.Immutable.ImmutableArray<'T> -> 'T[]
<Extension()>
Public Function ToArray(Of T) (immutableArray As ImmutableArray(Of T)) As T()

类型参数

T

集合包含的元素的类型。The type of element contained by the collection.

参数

immutableArray
ImmutableArray<T>

返回

T[]

新实例化的数组。The newly instantiated array.

适用于