Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics (Retired) Console I/O Receiving Input

Error Code that shouldn't be happening....

my code is the exact same as the teachers but it is giving me error CS0117, which means the System.Console doesnt know what ReadLine means... how do i fix that? im on a mac

Steven Parker
Steven Parker
229,744 Points

You'll need to show your code to enable the issue to be seen.
Or better yet, make a snapshot of the workspace and provide the link to it.

1 Answer

It would be helpful if you posted your code. From what you provided, all I can ask is did you include using System.Console;? If not, include it at the top or you need to write Console.ReadLine();, instead of just ReadLine();.