ReadOnlyCollectionBuilder<T>.ToArray 方法

定义

ReadOnlyCollectionBuilder<T> 的元素复制到新数组中。Copies the elements of the ReadOnlyCollectionBuilder<T> to a new array.

public:
 cli::array <T> ^ ToArray();
public T[] ToArray ();
member this.ToArray : unit -> 'T[]
Public Function ToArray () As T()

返回

T[]

一个包含 ReadOnlyCollectionBuilder<T> 的元素副本的数组。An array containing copies of the elements of the ReadOnlyCollectionBuilder<T>.

适用于