I have like 10 private members in my class, and I was hoping vs.net could create public properties from them but can't seem to find that option in VS.NET 2008.
Is there a feature for this?
I have like 10 private members in my class, and I was hoping vs.net could create public properties from them but can't seem to find that option in VS.NET 2008.
Is there a feature for this?
In VS, select the field you want to create a property for. In the Refactor menu select Encapsulate Field... and in the Encapsulate Field dialog which appears enter the name for the property and click OK.
You'll have to do this for each field, but it's pretty quick (especially if you use shortcut keys).