![]() |
VOOZH | about |
Console.KeyAvailable Property is used to get a value which shows whether a key press is available in the input stream. This property does not block input until a key press is available.
Syntax: public static bool KeyAvailable { get; }
Property Value: It will return true if a key press is available otherwise, it returns false.
Exceptions:
Example:
Output:
👁 Image
Reference: