M_Cyjb_StringView_Remove_1 - CYJB/Cyjb GitHub Wiki
返回删除当前字符串视图中指定位置之后指定个数字符的新字符串视图。
Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6
C#
public StringView Remove(
int startIndex,
int count
)
- startIndex
- Type: System.Int32
要开始删除字符的索引。 - count
- Type: System.Int32
要删除的字符串个数。
Type: StringView
删除指定字符之后的新字符串视图。
异常 | 条件 |
---|---|
ArgumentOutOfRangeException |
startIndex 小于 0 。 |
ArgumentOutOfRangeException |
startIndex + count 不表示当前字符串视图中的有效位置。 |