Link to home
Start Free TrialLog in
Avatar of rdrunner
rdrunner

asked on

Class generator for .NET

Hello,

I am looking for a class generator for VB.NET and C#

In VB i was able to use an Add in to create the basic structure of my classes and after that i only needed to modify those properties i (really) cared about.

Now i am using .NET and i cant seem to find those ADD-Ins anymore.


I hope they still exist? If so , can anyone tell me where to find them?

Thanx a lot

Avatar of bgungor
bgungor

I can't tell you about VB.NET, but in C#, most of the generation features are hidden in the Solution Explorer and the Properties window.

For instance, when you want to generate a new class file, you right click on your project and Add -> New Class.  That will create the stub for your class.  You change which class your new class derives from by typing in the code.  In other words, you can't specify when you create your class that it derives from another class.

public NewClass : BaseClass

When you do this, you can go into Class View, open up your class, click on the Bases and Interfaces, and when you right click on a method, it will permit you to override that method in your new class.

In the properties window (for forms controls), you normally look at all of the properties, however there are other buttons on the top of that windows that allow you to view Events.  If you find the event you want to handle in your form, you can double click the event name, and it will automatically create the handler for you, just as VB 6 would do with its drop down list of events.

I realize my suggestions are not exhaustive, and I am sure I have not listed all of the ways to enhance your programming productivity, but I hope I have given you enough of a hint to get you started.  I suggest you look at the documentation for these little tips on coding more easily.  Perhaps the VB.NET tips are hidden in the docs too.  

Good luck,

Bg
ASKER CERTIFIED SOLUTION
Avatar of DJDoug
DJDoug
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rdrunner

ASKER

Thanx a lot
I found neither of these solutions acceptable.