Code --> Generate --> Read-Write property issue

Code --> Generate --> Read-Write property does not work for class level
variables if name is preceded with an underscore.

For example:
private int _myTest; //will not work
private int myTest; //will work fine


Is there a reason for this?


1 comment
Comment actions Permalink

The problem also occurs when the variable name starts in capital case (it is a class generated from a webservice. so dont ask why the variable name has to start in capital case)

To continue Warren's example:
private int MyTest; //does not work

Vasanth
http://www.vasanthdharmaraj.com

Code --> Generate --> Read-Write property does not work for class
level variables if name is preceded with an underscore.

For example:
private int _myTest; //will not work
private int myTest; //will work fine
Is there a reason for this?


0

Please sign in to leave a comment.