Export (0) Print
Expand All

Boolean.GetHashCode Method

Returns the hash code for this instance.

[Visual Basic]
Overrides Public Function GetHashCode() As Integer
[C#]
public override int GetHashCode();
[C++]
public: int GetHashCode();
[JScript]
public override function GetHashCode() : int;

Return Value

A hash code for the current Boolean.

Remarks

The Boolean class implements true as the integer, one, and false as the integer, zero. However, a particular programming language might represent true and false with other values.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Boolean Structure | Boolean Members | System Namespace | GetHashCode

Show:
© 2014 Microsoft