0

Why I'm getting an error on Console.ReadLine...?

static void Main(string[] args) { string startRally = Console.ReadLine; // if (!rallying) { //rallying = true; //} }

27th Oct 2016, 8:20 AM
Yubhaseni J M Dickson
Yubhaseni J M Dickson - avatar
2 Answers
+ 3
Use Console.ReadLine(), with parenthesis. Without them, you are manipulating the function itself instead of calling it.
27th Oct 2016, 8:56 AM
Zen
Zen - avatar
0
Wooo😂 Thanks... I was doing it wrong....
27th Oct 2016, 10:05 AM
Yubhaseni J M Dickson
Yubhaseni J M Dickson - avatar