d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Reverse Engineering C# To Uml
Add Reply New Topic New Poll
Member
Posts: 17,971
Joined: Feb 6 2008
Gold: 703.00
Aug 7 2014 08:22am
Hey guys,

I'm struggeling with reverse-engineering some code. Ive been working for a few months on a project that people been working on for 2 yrs. There is a LOT of code.
Anyway, I tried to create UML class diagrams with multiple software found in the internet.

I did not find a single program that let you import the whole project and give you a detailed UML diagram. All I was able to generate is a UML for each namespace (with dependencies etc between classes) but not an UML containing all classes from all namespaces and there dependencies. I've used enterprise architect for this.
Does anyone by chance knows a program that is able to do generate an UML for a whole project from existing c# code? Or if possible how to do this with enterprise architect?

Thanks a lot in advance.
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Aug 7 2014 11:32am
I don't have much experience in reversing C# and these applications might not have what you're looking for, but I've had some success using ILSpy and .net reflector. I don't recall seeing a UML option though.
Member
Posts: 17,971
Joined: Feb 6 2008
Gold: 703.00
Aug 7 2014 12:07pm
Quote (AbDuCt @ Aug 7 2014 06:32pm)
I don't have much experience in reversing C# and these applications might not have what you're looking for, but I've had some success using ILSpy and .net reflector. I don't recall seeing a UML option though.


I will try out -net reflector tomorrow at work and tell you if I did succeed. Thanks for the hint!
Member
Posts: 17,971
Joined: Feb 6 2008
Gold: 703.00
Aug 8 2014 03:54am
Did not rally get it to work :/
But at least I as able to get some calling and called graphs for my functions by editing the doxyfile config. Seems like I do have to stck with the enterprise architect and doxygen output.
Member
Posts: 1,241
Joined: Jun 25 2011
Gold: Locked
Aug 9 2014 03:16am
Visual Paradigm does a good job of reversing java projects to class diagrams. I believe they also support c#. The community edition doesnt have the reverse engineering features though, but you can use their trial
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Aug 9 2014 12:42pm
You can do this with VisualStudio. You can right click a class file in SolutionExplorer and View Class Diagram. Or, if you have VisualStudio Ultimate 2013 you can use the UML Model Explorer to generate UML diagrams for your entire project (including dependencies), which sounds exactly what you want.
Member
Posts: 17,971
Joined: Feb 6 2008
Gold: 703.00
Aug 26 2014 07:10am
Quote (Minkomonster @ Aug 9 2014 07:42pm)
You can do this with VisualStudio. You can right click a class file in SolutionExplorer and View Class Diagram. Or, if you have VisualStudio Ultimate 2013 you can use the UML Model Explorer to generate UML diagrams for your entire project (including dependencies), which sounds exactly what you want.



I am using VS 2010 ultimate. But it wouldnt let me generate a UML that also includes namespace-dependencies. And I really dislike the graphical output of VS for large UML diagrams :/
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll