Enum TriState
- Namespace
- DatabentoDotNet.Dbn
- Assembly
- DatabentoDotNet.Dbn.dll
Represents an unknown, true, or false value. Equivalent to a nullable bool but with a human-readable wire representation.
public enum TriState : byte
- Extension Methods
Fields
No = 78False.
NotAvailable = 126The value is not applicable or not known. Equivalent to null.
Yes = 89True.
Remarks
Char-valued: each variant's numeric value is its ASCII character code, and that character is
the only wire/text form this type has — there is no separate string representation. Use
ToChar(TriState) to read it as a char. Rust marks
NotAvailable as the type's default, but C#'s implicit default(TriState)
is the zero value (TriState)0, which has no name here — NotAvailable's
wire value is '~' (0x7E), not 0. Reference NotAvailable
explicitly where upstream's default matters.