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.

備註

類別會實false作為整數,一,並以零為整數。 true BooleanThe 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.

適用於

另請參閱