What is the difference from these 2 codes?
version 1:
public int Armor {get;set;}
version 2:
int armor;
public int Armor {
get{ return armor; }
set{ armor = value; }
}
I had both tested and they do exactly the same thing. Could I continue using version 1 without any problems, since its less code?
If I set the armor to 4, both versions will have a result of 4.