0

is it possible to somehow import C# code into Microsoft Visio 2010 to generate UML Models?

The main problem is that I don't know how to model an interface which defines an event like below:

public interface IInterface
{
    bool Method();

    event EventHandler MyEvent;
}

So I thought it would be easiest if Visio is capable of importing my code, nevertheless if someone can explain to me how to model the interface described above I don't need to import anything.

Mark Pattison
  • 2,964
  • 1
  • 22
  • 42
  • I don't think there is, sorry! – Liam Aug 03 '12 at 08:39
  • @Mark Pattision: Is it possible to see what you edited that I may learn from my mistakes? –  Aug 03 '12 at 08:47
  • @b52 Yes, just click on [edited X mins ago](http://stackoverflow.com/posts/11792177/revisions)... – sloth Aug 03 '12 at 08:50
  • Yes, just click on "4 minutes ago" where it says "edited 4 minutes ago", above my name (obviously the number of minutes will change by the time you read this...) – Mark Pattison Aug 03 '12 at 08:50

1 Answers1

2

I don't think Visio will do this. However, Enterprise Architect will. You could do a free trial and see what it produces. Also this post might help as it discusses how some others are modelling events in UML.

Community
  • 1
  • 1
Davin Tryon
  • 66,517
  • 15
  • 143
  • 132