Boolean.GetHashCode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
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.