I am sure i have seen automatic property generator for a class in vb.net. like when i enter name of the perperty and press enter vb.net adds the set/get automatically.
do we have it in C# too? it doesn't work for me? any alternative?
The intellisence for Vb.Net is better than for C# (at least in VS 2002). You can get the IDE to creadt a template for you though. If you go to class view, and right click on the class it gives an a context menu, one option on the context menu is add, then choose add property.
A dialog is displayed which after you have completed will create the property template for you, including the get and set methods.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.