C# C# Basics (Retired) Perfect Refactoring

Unexpected Symbol

Hi i'm getting an error that says: Program.cs(63,24): error CS1519: Unexpected symbol `( ' in class, struct, or interface member declaration

I cant seem to find out what's wrong in my code https://w.trhou.se/48j9o1tmnm

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Staff

Hi there! It's because that particular line doesn't fall inside of the main function, but outside of it. So now, it no longer has access to System.Console. I moved the line up to where the user can type in quit. Take a look:

if (entry.ToLower() == "quit")

Hope this helps! :sparkles:

thank you!