M_Cyjb_StringView__ctor_1 - CYJB/Cyjb GitHub Wiki
创建指定字符串从指定索引开始的视图。
Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public StringView(
string? text,
int start
)
- text
- Type: System.String
要创建视图的字符串。 - start
- Type: System.Int32
视图的起始索引。
异常 | 条件 |
---|---|
ArgumentOutOfRangeException |
start 小于 0 或大于 text.Length 。 |
如果 text 为 null
,会返回空视图。