Visualise a C# method logic

308 Views Asked by At

I have a complex C# method which contains a set of if statements which determine access rights for a user.

I am looking for a way to visualise this logic into, say, a workflow diagram or something similar.

This is using .NET 3.5 and Visual Studio 2010.

Which tools (preferrably freely available) are available that may do this?

NB: I have found lots of tools to visualise method calls (eg call hierarchy), this isn't what I am looking for. I am looking for a tool to visualise the logic.

Thanks

EDIT: As part of my investigation I did find Flowchart4C# but it is $200 to buy outright and the trial won't let me confirm it does what I want it to! (<5 conditional statements).

2

There are 2 best solutions below

4
On BEST ANSWER
1
On

Non-automatic: Use dia (Windows, Linux: has flowchart-templates) or Inkscape (Windows, Linux, Mac: vector graphics).

Automatic: Refactor first, then automate.