Explicit C# event mistaken for property #10799
Labels
bug
C#
fixed but not released
Bug is fixed in github, but still needs to make its way to an official release
Describe the bug
Hello Doxygen team!
We accidentally ran into a minor bug with events in C#. Take a look at the following interface:
We expected to both of these events show up in events section in the XML output. However, the XML output looks like this:
As shown above the event without an explicit body (OnEventExtracted) shows up in the correct section. However, the one with an explicit body (OnEventNotExtracted), is considered a property. Which is not the case; it's just an explicit declaration of the add and remove operations (+= and -=) for the event.
To Reproduce
Run doxygen on the attached example:
bug_repro.zip
Expected behavior
Events defined with explicit bodies should be treated as events and not as properties in the XML output.
Version
We are using Doxygen version 1.9.6, but we were able to reproduce this with the latest 1.10.0 version as well.
The text was updated successfully, but these errors were encountered: