Reputation: 33
I'm trying to analyze a web site (built with asp.net) with ndepend.
If a take a look at the CQL queries about "unused code / dead code", the tool cites almost all my methods (including the onload, onprerender, ...), which is obviously wrong.
Does anyone have any idea what I can do to have a better result ? Thanks in advance
Upvotes: 2
Views: 500
Reputation: 13842
exception790, the methods you are quoting onload, onprerender... are indeed never statically used in the code but are dynamically used (at runtime) by the ASP.NET infrastructure.
NDepend being a static analyzer, it can't anticipate dynamic calls.
Upvotes: 2