It seems like a strange convenience property, only saving one character. Is there some important difference between using SizeX and Size.X? And why is there a SizeX property, but not a LocationX property?
The documentation does not mention any particular difference.
When it doubt, take a look at it with reflector or equivalent tool. The
Sizeproperty does this:And
SizeXdoes:They are both based off of the private field
_sizeX, so no, the value of them will always be the same. It’s just a way of getting different data structures to better suit your needs.There are properties for location, they are
Location.Xand justX, both of which use the private field_x. it just doesn’t follow the same naming convetion asSize.