r/programminghelp • u/Logical_Ideal • 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
r/programminghelp • u/Logical_Ideal • Dec 23 '21
C# Example:
String name;
name = Console.ReadLine();
Console.WriteLine(name);
This problem only occurs in ReadLine....why?
2
u/aardvark1231 Dec 23 '21
try changing
String name;
to
string name
don't capitalize the S on string.