Boolean.GetHashCode Boolean.GetHashCode Boolean.GetHashCode Boolean.GetHashCode Method

定義

傳回這個執行個體的雜湊碼。Returns the hash code for this instance.

public:
 override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

傳回

目前 Boolean 的雜湊碼。A hash code for the current Boolean.

備註

Boolean類別會實作true為整數,一個,和false為整數,零。The Boolean class implements true as the integer, one, and false as the integer, zero. 不過,可能代表特定的程式設計語言truefalse其他的值。However, a particular programming language might represent true and false with other values.

適用於

另請參閱