ASP.NET Custom Events reported as not used when they are.

I am seeing this in a Web Application project type. In my case I have a user
control exposing an event such as:

public event EventHandler ExportDocument;

In the page that includes the control, I have wired the event up using the
markup syntax:

<customControls:Banner ID="docDisplay" runat="server"
OnExportDocument="docDisplay_ExportDocument" />

Resharper will show the event in the CS code as unused (i.e. greyed out).
What is odd is that "Find Usages" is well aware of the markup association as
it will include it in the find usages result, with textual search turned
off.

Please sign in to leave a comment.