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#

Beverly Lee
Beverly Lee
1,084 Points

I still don't understand when to use caps and when to use lowercase.

For example, Width = width

What am I telling it to do over here?

1 Answer

Tomasz Sporys
Tomasz Sporys
11,258 Points

U use Capital letter when you refer to your backing field or rather property and lower when to the parameter in your constructor. In C# 5.0 it was mandatory to put "this" in front of that and you still can do it to help you understand how things work.

Example this.With = width;
or

public ArtistModel (string name) { this.Name = name; }