14

I am using Doxygen and GraphViz Dot to generate some collaboration diagrams for a C# project. The problem is generic collections (like List<>) are not recognised by Doxygen. Does anyone have a solution to this?

I found this comment that doesn't seem very hopeful, but was wondering if there are any work-arounds.

Dave Hillier
  • 18,105
  • 9
  • 43
  • 87
Bradley Marques
  • 502
  • 3
  • 22
  • 1
    Using Doxygen 1.8.2 (latest release as of right now), generics [look fine to me](http://i.imgur.com/mN6hc.png). Are you using an older version or is there something else that isn't working right? – Patrick Quirk Nov 24 '12 at 19:54
  • @PatrickQuirk, Unfortunately support for generics is incomplete; this is evident when you attempt to generate diagrams of a simple class that has e.g. `List children` where `T` is a custom type within same project, you will not see `children` displayed in the diagram. This occurs even though that same child _is_ listed amongst class members. This using v1.8.2. – Engineer Apr 05 '19 at 12:44
  • @doxygen Perhaps you can comment on this. – Engineer Apr 05 '19 at 12:50

2 Answers2

3

According to Doxygen's changelog, generics in C# were not being indexed prior to version 1.8.1.1 (released October 6). I don't see a corresponding bug for it, though looking at previous releases they've been supported for some time now.

As my comment above states, I don't see any issues using the current release (1.8.2). If that's the version you're using, please specifically mention what isn't working.

albert
  • 8,285
  • 3
  • 19
  • 32
Patrick Quirk
  • 23,334
  • 2
  • 57
  • 88
-1

there are Issues with Generics and Some thirdPartyControls. I had same Problem. If List<> not supoorted, you can Convert List to Corresponding Array of Objects. Array will support in any Controls and Products.

Just see the example.

Need To convert DataTreeNodeCollection (List) SubNodes into DataTreeNode[]

 DataTreeNode[] subNodesArray = new DataTreeNode[SubNodes.size()];

 foreach (DataTreeNode node in SubNodes)
                {
                    subNodesArray[count] = node;
                    count++;
                }

Here I converted List to Array.

Akshay Joy
  • 1,765
  • 1
  • 14
  • 23