Rune.CompareTo(Rune) 方法

定義

將目前執行個體與指定的 Rune 執行個體相比較。

public:
 virtual int CompareTo(System::Text::Rune other);
public int CompareTo (System.Text.Rune other);
abstract member CompareTo : System.Text.Rune -> int
override this.CompareTo : System.Text.Rune -> int
Public Function CompareTo (other As Rune) As Integer

參數

other
Rune

要與目前執行個體比較的執行個體。

傳回

Int32

帶正負號整數,指出這個執行個體在排序次序中與 other 的相對位置:
- 小於零:這個執行個體在 other 之前。
- 零:這個執行個體在排序次序中的位置與 other 相同。
- 大於零:這個執行個體在 other 之後。

實作

適用於