D
Duggi
As I read, one of the advantage of implementing auto-Implemented
Properties is to avoid the accidental access/ modification of the
private variable in the class.
However If set or get needs to be customized(as per the class logic),
there is no option I see, other than writing the private variable
again.
In which case, it can only be useful for the extendibility of public
variables to be converted into properties in the future.
I see no advantage over the public variables.
Is there any other major factor, which drove the implementation of
auto-Implemented properties in .Net3.0 ???
Thanks in advance
-Srinivas
Properties is to avoid the accidental access/ modification of the
private variable in the class.
However If set or get needs to be customized(as per the class logic),
there is no option I see, other than writing the private variable
again.
In which case, it can only be useful for the extendibility of public
variables to be converted into properties in the future.
I see no advantage over the public variables.
Is there any other major factor, which drove the implementation of
auto-Implemented properties in .Net3.0 ???
Thanks in advance
-Srinivas