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 trialChristopher Floyd
Courses Plus Student 4,748 PointsStuck--unexpected symbol- compiler error
https://w.trhou.se/rzvbtszoqw I keep getting a compiler error(Program.cs) from 13,9: cs 1525: unexpected symbol `var' i'm not getting it from any other lines and i have no idea why. I've searched the msdn for answers but, that only seems to confuse me more. thank you!
2 Answers
KRIS NIKOLAISEN
54,971 PointsWhen you see unexpected symbol for a line look to the line before. You are missing a semicolon at the end of this line:
book.Genre = "Science Fiction";
Christopher Floyd
Courses Plus Student 4,748 PointsFOR THE LOVE OF #*^%& !! I've been sitting in front of the computer for just about 5 hours now, watching video, taking notes, my head is flat from hitting it on the desk over that missing semi-colon for the last 30 mins. Thanks!