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 trialGarett Madu
899 PointsCan someone explain better what is going on whenever something.something is going on?
Unfortunately I just don't seem to comprehend what is happening 90% of the time with this class.
I understand the general purpose of . in C#, it's calling or instantiating I think? Like Console.WriteLine we're calling the writeline method from the console class?
So I think I get the general idea of this, but can someone please give me an indepth explanation better than in the video about what we are calling from where and what is being referenced or sent to or information given or retrieved or whatever the hell is happening when, for example, he calls invader.Location = location?
Thanks. Slow learner, really frustrated.
2 Answers
Garett Madu
899 PointsSorry Steve.
Around 3:52 he referenced the code I'm talking about.
I guess I just mean in general as well, to the concept.
Steven Parker
231,271 PointsI meant link the course page not just the video, but obviously I found it.
The line you are referring to is being deleted at this point. What that line did before was to set the field in the "invader" object. But then some other changes made it not needed.
The point of this lesson is what is being done over in the "Invader" module, the field gets replaced by an auto-property with private setting.
Steven Parker
231,271 PointsSteven Parker
231,271 PointsYou forgot to provide a link to the course page you are asking about. Also please give an approximate time point.