BuffersExtensions.ToArray<T>(ReadOnlySequence<T>) 方法

定义

ReadOnlySequence<T> 转换为数组。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static cli::array <T> ^ ToArray(System::Buffers::ReadOnlySequence<T> % sequence);
public static T[] ToArray<T> (this in System.Buffers.ReadOnlySequence<T> sequence);
static member ToArray : ReadOnlySequence -> 'T[]
<Extension()>
Public Function ToArray(Of T) (ByRef sequence As ReadOnlySequence(Of T)) As T()

类型参数

T

ReadOnlySequence<T>项的类型。

参数

sequence
ReadOnlySequence<T>

要转换为数组的只读序列。

返回

T[]

包含当前只读序列中数据的数组。

适用于