ConsoleKeyInfo

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:

IObject 

Public:

Types:

NameDescription
 ConsoleKeyA list of all the scankey codes. 
 ConsoleModifiersValues that represent the specific modifier keys used to indicate different values for specific keys. 

Properties:

NameDescription
 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:

NameDescription
 EqualsReturns a boolean indicating if the value and this object instance are the same instance. 
 GetHashCodeReturns a pseudo-unique number identifying this instance. 
 ToStringReturns a string representation of this object instance.