Skip to content

M_Cyjb_StringView_CompareTo_2

CYJB edited this page Mar 20, 2024 · 2 revisions

StringView.CompareTo 方法 (String)

将当前对象与另一个字符串进行比较。

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

语法

C#

public int CompareTo(
	string? other
)

参数

 

other
Type: System.String
要比较的字符串。

返回值

Type: Int32
一个值,指示要比较的对象的相对顺序。

实现

IComparable(T).CompareTo(T)

参见

Reference

StringView 结构
CompareTo 重载
Cyjb 命名空间

Clone this wiki locally