Table of Contents

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 = 78

False.

NotAvailable = 126

The value is not applicable or not known. Equivalent to null.

Yes = 89

True.

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.