I started playing with UML modeling in VS. I tried creating diagram with a few classes, connect them and generate some code from the model – after installing the Feature Pack, everything seems to work fine.
However what I am missing is the ability to declare events – which play rather major part in .Net (and are often key to the design).
How do I declare events in the UML Class Diagram in Visual Studio?
EDIT:
To clear things up. I’m not interested in anything related to the Class Diagram feature present in C# projects in Visual Studio for some time.
This question is related to Modeling Project, which is a new feature in Visual Studio 2010 Ultimate.
UML is implementation language agnostic. The correct way to define a language specific idiom in UML is by using a stereotype. A stereotype is a specialisation of UML metaclass. Define a profile which extends Class into an EventHandler and Event stereotype which extends Message. Then apply those stereotypes to classes in your models appropriately. You can then place the language specific idiom implementation details in the stereotype.