Class diagram for C#?

Hello!

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.

Thanks again!

Tore,
Norway

[370 byte] By [tore-] at [2008-2-26]
# 1
Are 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.
LivetoCodeCodetoLive! at 2007-9-4 > top of Msdn Tech,Architecture,Modeling and Tools...
# 2

Yeah,

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.

Cheers,

Martin.

MartinPlatt at 2007-9-4 > top of Msdn Tech,Architecture,Modeling and Tools...