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.

注解

类实现true为整数、一个和false整数零。 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.

适用于

另请参阅