UML

F

Ferryandi

Hi, i want to ask
is it possible to generate UML diagram from VS C#.NET?
because i confuse on how to draw UML diagram that have
User Interface. One more think to ask, is User Interface
like for example i have frmAddNewStudent.cs can be called
class?
 
S

Shiva

If you have installed Visio 2003 (or the Visio that comes with Visual Studio
..NET Ent. Architect version), you can do reverse-engineering of the
project/solution.

Yes, all the UI forms are classes.

Hi, i want to ask
is it possible to generate UML diagram from VS C#.NET?
because i confuse on how to draw UML diagram that have
User Interface. One more think to ask, is User Interface
like for example i have frmAddNewStudent.cs can be called
class?
 
M

Manohar Kamath

You must have Visual Studio Enterprise Architect for that, and also have
installed Visio that came with that.

After you have done the above, in the "Project" menu, click on "Visio UML"
and "Reverse Engineer" -- and you have a UML diagram.

In .NET, UI elements are classes (or objects) -- and hence you can represent
them in your UML diagram. One thing to note though, UML does not have
one-to-one representation of C# features. For example, constructors will be
treated as methods, etc.
 
H

Howard Swope

Borland makes a really nice tool that integrates with VisualStudio that will
allow you to work both ways with UML (change code - UML models change,
change UML models - code changes).

One thing to remember a class in UML is not necessarily a one to one
correlation with a class in a given language. Often it is so, but a class in
UML is just a generic classification and can be used to represent many
things in your system not just entities that can be used to instantiate
objects.
 

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