Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Struct

Boolean

struct bool

Module: System
Assembly: System.Runtime.dll
Source file: Boolean.rvn

Inheritance: Object → ValueType → Boolean
Implements: ComparableTo<Boolean>, EquatableTo<Boolean>

A Boolean true or false value.

Methods

7 items
CompareTo(other: bool) -> int Compares this value with the other value; returns a negative integer, zero or a positive integer for less than, equal to or greater than. Implements ComparableTo<Boolean>.CompareTo
Equals(other: bool) -> bool Tests equality with another value of the same type without boxing. Implements EquatableTo<Boolean>.Equals
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality. Inherited from Object.Equals
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality. Inherited from Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
Static member: Parse(value: string) -> Result<bool, BooleanParseError> Parses the complete text using the strict, culture-independent grammar.
ToString() -> string Returns the concrete runtime type name for supported references, or display text from a class or boxed-struct override. Inherited from Object.ToString