Skip to content

M_Cyjb_StringView_TrimEnd_2

CYJB edited this page Mar 20, 2024 · 2 revisions

StringView.TrimEnd 方法 (Char[])

从当前字符串视图删除指定字符数组的尾随匹配项。

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

语法

C#

public StringView TrimEnd(
	params char[]? trimChars
)

参数

 

trimChars
Type: System.Char[]
要删除的字符数组。

返回值

Type: StringView
删除尾随字符后的剩余字符串视图。

Remarks

如果 trimCharsnull 或空数组,则删除所有空白字符。

参见

Reference

StringView 结构
TrimEnd 重载
Cyjb 命名空间

Clone this wiki locally