ImmutableArray<T>.AsMemory 方法

定义

通过此不可变数组创建新的只读内存区域。Creates a new read-only memory region over this immutable array.

public:
 ReadOnlyMemory<T> AsMemory();
public ReadOnlyMemory<T>? AsMemory ();
public ReadOnlyMemory<T> AsMemory ();
member this.AsMemory : unit -> ReadOnlyMemory<'T>
Public Function AsMemory () As ReadOnlyMemory(Of T)

返回

ReadOnlyMemory<T>

此不可变数组的只读内存表示形式。The read-only memory representation of this immutable array.

适用于