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 Inheritance Inheritance in Code

my code is failing to compile,someone to help,and its talking of missing an assembly point

Game.cs(17,31): error CS1061: Type TreehouseDefense.Point' does not contain a definition forDistanceTo' and no extension
method DistanceTo' of typeTreehouseDefense.Point' could be found. Are you missing an assembly reference?
Point.cs(5,11): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! Unfortunately, without seeing your code, this will be hard to debug. The easiest way for us to see your code is for you to provide a "snapshot" of your workspace. On the upper right-hand side of your workspace, you'll find a camera icon. Clicking this icon will create a "snapshot" which you can link here. We can then "fork" or create a copy of it and take a look around.

But take a moment and look carefully at your Point class and make sure there is a method defined named DistanceTo. Make sure both the spelling and capitalization are correct. DistanceTo, distanceTo, and Distanceto would all be considered different methods in C# as everything is case sensitive.

Thank you very much Jennifer,you just made me take note of what i was missing...you are a star!