Sep 5, 2017 11:06 AM
(This post was last modified: Sep 5, 2017 11:08 AM by abratar.)
So is there something like a convention or a rule or something on how to and when to use one of these?
I never really understood it. I didn't know what exactly to google and if I found something, there were different answers...
Does it even matter what I use?
And also whats the difference between tha last two?
I never really understood it. I didn't know what exactly to google and if I found something, there were different answers...
Does it even matter what I use?
Code
public int age;Code
public int Age { get; set; }Code
private int age;
public int Age
{
get { return this.age; }
set { this.age = value; }
}And also whats the difference between tha last two?


