+ 1
Why it don't works?
I wrote the same code like in tutorial, but I get error. Why? namespace SoloLearn { class Program { static void sayHi() { Console.WriteLine("Hi"); } static void Main(string[] args) { sayHi; } } }
9 Answers
+ 23
use sayHi() in main().
+ 9
function requires "()" at the end. this means you cannot write sayHi;
You need to write sayHi();
+ 8
No problem, just learn from mistakes.
+ 7
#understood not understanded.
+ 3
Thanks
+ 3
Thanks, I already understanded :D
+ 3
Remember it like this:
A guy wants to get some eggs, so he goes to the store and sees their shape ();
Lol sorry that's all I can think of.
+ 2
Ahahaha. What a mistake
+ 2
Ok, sorry, I'm from Russia, so sometimes I make orthography mistakes)