Modeling .Net Generics in Visual UML Diagrams

Hi Forum

I'm trying to find out how I should depict our generic collections or generic types in general.

Our company has a range of generic collections and I want to deliver class diagrams to developers where I depict the various generic collections that we have. (So I guide them to use the right one for the job)

I only have Visio to work with - Is there any good way of doing this?

[410 byte] By [Siteadm] at [2007-12-27]
# 1

Is the best way to make new types each type you use them and call them something like:

XXXCollectionOfProduct
XXXCollectionOfOrder

YYYCollectionOfProduct
YYYYCollectionOfOrder

So I have to make a new type for every object what is to be used in the collections?

Siteadm at 2007-9-4 > top of Msdn Tech,Architecture,Architecture General...
# 2

Ok, So I'm answering my own question.

I can use Visual Studio 2005 Class designer for this. It actually works quite well. Now I just have a problem with all the other diagram types in UML.

By default "types" are not shown on the diagrams. They are only in class details. You can change this under the class diagram menu. Class Diagram | Display Member Types.

If anyone knows how to work with generics in Visio I would still like to know.

Siteadm at 2007-9-4 > top of Msdn Tech,Architecture,Architecture General...
# 3

This isn't the answer, but is very informative on designing class diagrams into Z

http://www-users.cs.york.ac.uk/~fiona/PUBS/umlcd2z-fmep.pdf

nick5454 at 2007-9-4 > top of Msdn Tech,Architecture,Architecture General...