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#

Can 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.

Steven Parker
Steven Parker
231,210 Points

You forgot to provide a link to the course page you are asking about. Also please give an approximate time point.

2 Answers

Sorry Steve.

https://videos.teamtreehouse.com/videos/TH-CSharpObjects-S5-V3-360.mp4?token=5eb774ad_039363f2c18ef6787e0aab8730b3c8c478eea34d

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
Steven Parker
231,210 Points

I 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.