Monday, February 18, 2008

Shortcut to create Property out of Field - C#

To create Property out of Field, you need to declare a field as private and create Property for the field. But now you can create Property out of Field with combination of three keys. Yeah..., its Ctrl+R+E.
Declare the field as private and press "Ctrl+R+E" on the field name. It will popup a dialog where you can set the name of property (its almost what you want). Click OK to create Property in your C# code.

Property gets created automatically on click of OK

No comments:

Post a Comment