Skip to content

Explicit C# event mistaken for property #10799

@ni-gergokozma

Description

@ni-gergokozma

Describe the bug

Hello Doxygen team!

We accidentally ran into a minor bug with events in C#. Take a look at the following interface:

image

We expected to both of these events show up in events section in the XML output. However, the XML output looks like this:

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions