Modifier

Partager via


Boolean.GetHashCode Method

Definition

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.

Applies to

See also