ConsoleKeyInfo
Represents the information contained in a console key press.
Remarks
When a key pressed on a console, a ConsoleKeyInfo
object is generated by reading the pressed key using the ReadKey
method. The generated object contains the key press information
describing the event.
See Also
Project VBCorLib Overview
| Console
Implements:
Public:
Types:
| Name | Description |
|---|
ConsoleKey | A list of all the scankey codes. |
ConsoleModifiers | Values that represent the specific modifier keys used to indicate different values for specific keys. |
Properties:
| Name | Description |
|---|
Key (get) | Returns the scankey code of the pressed key. |
KeyChar (get) | Returns the ascii code of the pressed key. |
Modifiers (get) | Returns the state of the key modifiers (Shift, Alt, Control) at the time of the key press. |
Methods:
| Name | Description |
|---|
Equals | Returns a boolean indicating if the value and this object instance are the same instance. |
GetHashCode | Returns a pseudo-unique number identifying this instance. |
ToString | Returns a string representation of this object instance. |