The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ConsoleKeyInfo::KeyChar Property
.NET Framework (current version)
Gets the Unicode character represented by the current ConsoleKeyInfo object.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System::CharAn object that corresponds to the console key represented by the current ConsoleKeyInfo object.
If the key pressed does not map to a Unicode character (for example, if the user presses the F1 key or the Home key), the value of the KeyChar property is \U0000.
.NET Framework
Available since 2.0
Available since 2.0
Show: