Click here to Skip to main content
15,889,315 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,
which line of code will be equivalent to console.readkey() 😊

What I have tried:

C#
console.WriteLine();
Posted
Updated 12-Jun-23 5:41am
Comments
Graeme_Grant 12-Jun-23 12:25pm    
What are you trying to do?

1 solution

There is no equivalent as it makes no sense, you can only write printable characters. For example you cannot write a function key. See Console.ReadKey Method (System) | Microsoft Learn[^].
 
Share this answer
 
v2
Comments
suhail malik 2023 12-Jun-23 11:49am    
got it sir

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900