← Standard library

bool

struct bool

Available without an import.

The Boolean value type, spelled bool, with values true and false. Its default value is false; its text form is lowercase and its equality compares values.

Bool.wax:7

Members

constructorconstructor

public constructor ()

Creates false.

Bool.wax:12

GetHashCodemethod

public fn GetHashCode() : uint32

Returns a hash consistent with Boolean value equality.

Bool.wax:18

ToStringmethod

public fn ToString() : string

Returns true or false in lowercase.

Bool.wax:34

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Appends lowercase Boolean text and returns the number of bytes appended.

Bool.wax:42

Equalsmethod

public fn Equals(bool other) : bool

Tests whether the two Boolean values are equal.

Bool.wax:50