共用方式為


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[]

陣列,其中包含目前唯讀序列中的資料。

適用於