Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Property generator in Visual Studio .net with C#??

Status
Not open for further replies.

rahmanjan

Programmer
Apr 13, 2003
180
AU
hi all,

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?

regards,
 
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.


Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top