Which method in Console enables to read individual inputs directly from the keyboard in a non line buffered manner?

Which method in Console enables to read individual inputs directly from the keyboard in a non line buffered manner?
A. Read()
B. ReadKey()
C. ReadLine()
D. All of the mentioned
 
Answer: b
Explanation: The .NET Framework includes a method in Console that enables you to read individual keystrokes directly from the keyboard, in a non-line-buffered manner. This method is called ReadKey(). When it is called, it waits until a key is pressed. When the key is pressed, ReadKey( ) returns the keystroke immediately.
 

Tìm kiếm

Back
Top