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 位元有號整數雜湊碼。

屬性

備註

GetHashCode 行為取決於其實作,而實作可能會在不同版本的共通語言執行環境間有所變化。 這可能會發生以提升 的 GetHashCode效能。 為了使行為為 GetHashCode 常數,應用程式應以已知永不更改的實作覆蓋執行 GetHashCode 時實作。

適用於

另請參閱