G
Guest
For the following simple property:
property int x;
I understand that a hidden backing variable will be created (I like that).
However, why is a simple property any different than a public data member?
I could see the usefulness, if it were possible (for example) to have
private set access and public get accessors, but doesn't this require a
non-simple property?
property int x;
I understand that a hidden backing variable will be created (I like that).
However, why is a simple property any different than a public data member?
I could see the usefulness, if it were possible (for example) to have
private set access and public get accessors, but doesn't this require a
non-simple property?