StringInfo.GetHashCode 方法

定義

計算目前 StringInfo 物件值的雜湊碼。

public:
 override int GetHashCode();
public override int GetHashCode ();
[System.Runtime.InteropServices.ComVisible(false)]
public override int GetHashCode ();
override this.GetHashCode : unit -> int
[<System.Runtime.InteropServices.ComVisible(false)>]
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

傳回

以這個 StringInfo 物件的字串值為基礎的 32 位元帶正負號的整數 (Signed Integer) 的雜湊碼。

屬性

備註

的行為 GetHashCode 取決於其實作,可能會從一個版本的 Common Language Runtime 變更為另一個版本。 這可能會改善的 GetHashCode效能。 若要讓常數的行為 GetHashCode 成為常數,應用程式應該使用已知永遠不會變更的實作覆寫 的 GetHashCode 運行時間實作。

適用於

另請參閱