62 public override bool Equals(
object value)
77 if (obj._keyChar == _keyChar && obj._key == _key)
79 return obj._mods == _mods;
108 return (
int)_keyChar | (int)_mods;
ConsoleModifiers Modifiers
Gets a bitwise combination of T:System.ConsoleModifiers values that specifies one or more modifier ke...
override bool Equals(object value)
Gets a value indicating whether the specified object is equal to the current T:System....
The exception that is thrown when the value of an argument is outside the allowable range of values a...
static bool operator==(ConsoleKeyInfo a, ConsoleKeyInfo b)
Indicates whether the specified T:System.ConsoleKeyInfo objects are equal.
static bool operator !=(ConsoleKeyInfo a, ConsoleKeyInfo b)
Indicates whether the specified T:System.ConsoleKeyInfo objects are not equal.
Provides information about, and means to manipulate, the current environment and platform....
char KeyChar
Gets the Unicode character represented by the current T:System.ConsoleKeyInfo object.
ConsoleKey Key
Gets the console key represented by the current T:System.ConsoleKeyInfo object.
Describes the console key that was pressed, including the character represented by the console key an...
ConsoleModifiers
Represents the SHIFT, ALT, and CTRL modifier keys on a keyboard.
bool Equals(ConsoleKeyInfo obj)
Gets a value indicating whether the specified T:System.ConsoleKeyInfo object is equal to the current ...
override int GetHashCode()
Returns the hash code for the current T:System.ConsoleKeyInfo object.
Specifies that the class can be serialized.
ConsoleKeyInfo(char keyChar, ConsoleKey key, bool shift, bool alt, bool control)
Initializes a new instance of the T:System.ConsoleKeyInfo structure using the specified character,...
ConsoleKey
Specifies the standard keys on a console.