How to add properties in class?

G

Guest

hi friends

I have create one class in VB.Net, named as TestCtrl.V

Now, i want to add some properties in that class. In VB, there is add-in component (Class Builder Utility) by which we can add properties in class

But in dotnet how to add properties. Is there any add-in components available or we have to write them manually

regards
Ashish
 
S

Steve C. Orr [MVP, MCSD]

I miss the class builder a bit too.
In VS.NET you can just start typing in your property and after you enter the
first line it will automatically fill in most of rest of the typing for you.

Or you can use Visio 2003 enterprise architect. You can create an object
model diagram, defining all your objects and properties and it will generate
the code for you. The generated code is customizable too. You can also
reverse engineer your code to keep your diagrams in sync.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net




hi friends,

I have create one class in VB.Net, named as TestCtrl.Vb

Now, i want to add some properties in that class. In VB, there is add-in
component (Class Builder Utility) by which we can add properties in class.
But in dotnet how to add properties. Is there any add-in components
available or we have to write them manually?
 
A

Armin Zingler

I have create one class in VB.Net, named as TestCtrl.Vb

Now, i want to add some properties in that class. In VB, there is
add-in component (Class Builder Utility) by which we can add
properties in class.

But in dotnet how to add properties. Is there any add-in components
available or we have to write them manually?

Type
public property prop as integer<Enter>
and the editor will create the procedures for you.

I've never used/needed the class wizard in previous versions.


--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
 
H

Herfried K. Wagner [MVP]

* =?Utf-8?B?QXNoaXNoIFBhdGVs?= said:
I have create one class in VB.Net, named as TestCtrl.Vb

Now, i want to add some properties in that class. In VB, there is add-in component (Class Builder Utility) by which we can add properties in class.

But in dotnet how to add properties. Is there any add-in components available or we have to write them manually?

You will have to type the code:

\\\
Public Property Foo() As Integer
///

.... and press return. This will create the body of the property. When
implementing an interface, skeletons for properties are created too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top