The ConsoleKeyInfo type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ConsoleKeyInfo |
Initializes a new instance of the ConsoleKeyInfo structure using the
specified character, console key, and modifier keys.
|
Methods
Name | Description | |
---|---|---|
Equals |
Tests whether the specified object is equivalent to this ConsoleKeyInfo instance.
(Overrides ValueType..::..Equals(Object).) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode |
Returns a hash code of this instance.
(Overrides ValueType..::..GetHashCode()()()().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Operators
Name | Description | |
---|---|---|
Equality |
Tests whether two instaces of the ConsoleKeyInfo structure are equivalent.
| |
Inequality |
Tests whether two instaces of the ConsoleKeyInfo structure are different.
|
Properties
Name | Description | |
---|---|---|
Key |
Gets the console key represented by the current ConsoleKeyInfo object.
| |
KeyChar |
Gets the Unicode character represented by the current ConsoleKeyInfo object.
| |
Modifiers |
Gets a bitwise combination of System.ConsoleModifier values that specifies
one or more modifier keys pressed simultaneously with the console key.
|