Thursday, November 16, 2006 10:14 AMHello!
Im currently developing a C# application. I have previous exp. with Java, and designing different diagrams and soforth. But, I have problems with how a class diagram should be created, since you dont have to use set/get methods for your variables.
Any articles, examples or related information would be very helpfull for me.
Monday, July 16, 2007 9:06 PMAre you talking about class designer in VS 2005? I think this is the easiest way to design classes and have them reflect back and forth from code.
Thursday, July 19, 2007 12:57 AM
I agree. The VS2005 class diagram is sufficient for many situations, and offer full round trip documentation too.
Visio does it, and gets more into the UML side of things, but is one way only. You can create code from the model, but it's a fairly major effort to make it work. Visio is probably better at the "pure" UML models such as sequence diagrams, use cases, class diagrams and so on. For a purely visual representation it's fairly good, but for sheer ease of use, the Visual Studio one wins hands down.
I don't like the VS tool in one area, and that is that it enables you to write code before designing and documenting, but then again, that's really a process discussion. VS is good also for other models such as services and the like too, which is a bonus.
Tuesday, December 01, 2009 8:48 PMHi Tore,If you are using VS it should be very easy.Just open the Solution explorer window(If not visible go View->Solution Explorer)In that window a treeview of your solution is displayed. I recommend you create a folder for your diagrams, but it's not necessary.Just right-click the project (or the folder you created to store your diagrams), a menu appears-Click Add new Item-A window pops up with a lot of items available to add, just look for the class diagram, give a name for your new class diagram and click OKNow the class diagram should appear in the solution explorerm double click on it and the class diagram designer will openJust drag and drop your project from the Solution Explorer to you Diagram Designer. All your classes should appear on the diagram.You can easily add classes and modify them from the diagram. You can also add summaries to all the field, properties, methods and events... It is really easy.I hope this helps you.-Alex
Wednesday, December 02, 2009 11:13 AMHi,
You can use VS 2005 to create your class diagrams, but if you have you previous experience with Visio or Rose, you can use the same to create your class and sequence diagrams and bring back the same into your visual studio and forwrd engg the same.
Mark as answer if this helps
Thanks and Regards Azhar Amir
Tuesday, December 08, 2009 5:11 AMHello Tore
VS2010 beta 2 has Out of box support for creating various Architecture models including Use Case, Class, Sequence, etc.
Since you have already used Rational, you will find this feature easy to use.
It also has reverse engineering (code to models) and forward engineering (models to code, partially available with beta, Fill blown expected in final release)
I have tried this with .Net 4.0, but sure should work for .Net 3.5 and 3.0
check my blog http://www.infosysblogs.com/microsoft/2009/11/architecture_rules_enforcement.html
hope this helps,