DevPinoy.org
A Filipino Developers Community

>>> First two to make 3 wins! <<<

error CS 0117

rated by 0 users
This post has 6 Replies | 2 Followers

Top 200 Contributor
Posts 5
Points 115
hbk Posted: 04-28-2008 10:07 AM

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 

You make the rules, I'll break 'em.
  • | Post Points: 50
Top 10 Contributor
Posts 1,967
Points 39,325

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 ;)

devpinoy sig

  • | Post Points: 20
Top 10 Contributor
Posts 328
Points 4,160

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 

devpinoy sig
  • | Post Points: 20
Top 200 Contributor
Posts 5
Points 115

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,

 HBK

You make the rules, I'll break 'em.
  • | Post Points: 5
Top 200 Contributor
Posts 5
Points 115

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 :)

 Regards,

 HBK

You make the rules, I'll break 'em.
  • | Post Points: 20
Top 10 Contributor
Posts 328
Points 4,160

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.

devpinoy sig
  • | Post Points: 5
Top 10 Contributor
Posts 751
Points 10,140

Hi "Sexy Boy", LOL.

I have a guess that C# is case sensitive, why not try;

"WriteLine"

Ex: System.Console.WriteLine();

Hope it works. :D 

 

EDIT: Waaahhhhh! I did not see that Keith has the better answer... oh well. :)

  • Filed under: ,
  • | Post Points: 5
Page 1 of 1 (7 items) | RSS

Copyright DevPinoy 2005-2008