r/programminghelp • • Dec 23 '21

C# Why this code gives CS8600 problem

C# Example:

String name;

name = Console.ReadLine();

Console.WriteLine(name);


This problem only occurs in ReadLine....why?

6 Upvotes

11 comments sorted by

View all comments

1

u/Elegant-Moment-9835 Sep 25 '22

I am having the same problem, but every time the program gets to that line, (after I put in my input and hit enter) it closes. Does anyone know why? (I have code after this too)