Hi Guys,
I'm a new member here and currently self studying C# language. I'm trying to do the exercises on the book I'm reading (C# Primer Plus by Klaus Michelsen) however I cannot compile the program due to this error.
error CS 0117 ‘System.Console’ does not contain a definition for ‘Writeline’
Hope you can share some information on this as I really would like to learn the language.
Thanks in advance.
HBK
Hi HBK,
Welcome to devpinoy!
I believe the problem is because of a typo on the book. C# is case-sensitive so it won't recognize Console.Writeline because the correct call is Console.WriteLine.
HTH. Keep on posting your questions and we'll help you out in any way we can ;)
I think you're better off with the book "Head First C#" (if you don't have it yet). Grab it from Amazon: http://www.amazon.com/Head-First-C-Brain-Friendly-Guides/dp/0596514824/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1209407925&sr=8-1
Hi Keith / Dev Pinoy guys,
I appreciate the prompt reply.
You're the man! I was able to compile the code :)
Thanks for the warm welcome as well.
Regards,
Hi Marl,
Thanks for the suggestion. Perhaps I'll try that book too when I'm done with C# Primer Plus which I also got from Amazon. Hopefully the book I purchased don't have that many typo errors :)
hbk:Thanks for the suggestion. Perhaps I'll try that book too when I'm done with C# Primer Plus which I also got from Amazon
you're welcome...that was suggested to me by Keith. Feel free to post any types of questions that you may have. you can also follow some DevPinoy members in Twitter.com. DevPinoy is an international community, so you're in the right place at the right time.
Hi "Sexy Boy", LOL.
I have a guess that C# is case sensitive, why not try;
"WriteLine"Ex: System.Console.WriteLine();
"WriteLine"
Ex: System.Console.WriteLine();
Hope it works. :D
EDIT: Waaahhhhh! I did not see that Keith has the better answer... oh well. :)