Boolean.GetHashCode Method

Definition

Returns the hash code for this instance.

public override int GetHashCode ();
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.

Applies to