Boolean.GetHashCode 方法

定義

傳回這個執行個體的雜湊碼。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. 不過,特定的程式設計語言可能代表 true,而且與其他值 falseHowever, a particular programming language might represent true and false with other values.

適用於

另請參閱