C#C
C#12mo ago
43 replies
Faker

✅ Taking user input using Console.ReadLine()

Hello guys, can someone explain why my IDE (rider) has underlined the Console.ReadLine method pls.

Console.WriteLine("What is your name?");
            string name = Console.ReadLine();
            Console.WriteLine(name);


What is wrong here? what can be corrected and why pls
D37D75FB-92DA-4E01-8BA6-C0BA5D79FEA9.png
Was this page helpful?