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# Objects Object-Oriented Programming Fields

Heath Port
Heath Port
2,571 Points

Compiler Error cs0246

Hey Guys, I'm getting a "type" error for "map" here are links to my code, any ideas? https://imgur.com/Jdt3HQK https://imgur.com/UwtmAIE

2 Answers

Michael Lauridsen
Michael Lauridsen
10,321 Points

It seems to just be a simple typo. In your Game.cs you have to write map() with an uppercase like Map() since the class name is Map.,

Map map = new Map();