ConsoleKeyInfo
struct ConsoleKeyInfo
Module: System
Assembly: System.Runtime.dll
Source file: ConsoleKeyReader.rvn
Inheritance: Object → ValueType → ConsoleKeyInfo
Implements: EquatableTo<ConsoleKeyInfo>
A decoded key value. TextScalar is a Unicode scalar, not a grapheme or an allocated String.
Remarks
Shift is reported only when explicitly encoded; uppercase text alone does not imply Shift. Legacy terminals cannot distinguish Tab from Ctrl+I, Enter from Ctrl+M or Backspace from Ctrl+H. Compiler-generated self-equality interface compares all fields, including the active TextScalar case and scalar value. Equal keys have equal hashes; None, Some(0) and an uninitialized Optional are distinct.
A key value containing logical key identity, reported modifiers and optional Unicode scalar text. TextScalar is not a grapheme or an allocated String.
Development equality compares all fields, including the active TextScalar case and payload. Equal keys have equal hashes. None, Some(0) and uninitialized Optional storage remain distinct. Explicit boxing still allocates a value box.
Complete equality and hash member reference
includes both operator signatures. The pinned renderer currently gives == and !=
the same generated URL, so that manual entry is authoritative for their signatures.
The compiler supplies EquatableTo<ConsoleKeyInfo> automatically. Typed interface
calls use the generated equality method; the record uses ordinary value-type layout
and interface dispatch.