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



Answer this question

Modeling .Net Generics in Visual UML Diagrams

  • nabe

    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.


  • robinjam

    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


  • daniel009

    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


  • Modeling .Net Generics in Visual UML Diagrams