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. 但是,特定的编程语言可能使用其他值表示 truefalseHowever, a particular programming language might represent true and false with other values.

适用于

另请参阅