Skip to content

M_Cyjb_StringView_AsMemory_1

CYJB edited this page Mar 20, 2024 · 2 revisions

StringView.AsMemory 方法 (Int32)

返回当前字符串视图的 ReadOnlyMemory(T)

Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public ReadOnlyMemory<char> AsMemory(
	int start
)

参数

 

start
Type: System.Int32
开始切片处的索引。

返回值

Type: ReadOnlyMemory(Char)
字符串视图的 Memory(T) 表示形式。

Exceptions

 

异常 条件
ArgumentOutOfRangeException start 小于 0 或大于 Length

参见

Reference

StringView 结构
AsMemory 重载
Cyjb 命名空间

Clone this wiki locally