Find out a method never called

  • Thread starter Thread starter Henry Chen
  • Start date Start date
H

Henry Chen

In Delphi we could tell by the blue dots on the margin of the editor that a
piece of code was compiled or not and because Delphi optimised the
compilation not to contain source that was never called, identifying such
code was very easy. Is there a way to easily tell if a method in .NET is
never called?

Thanks in advance
Henry
 
I believe C# will tell you if you have unreachable code (a private member
for instance). For exposed methods, you never know if someone is going to
call your code, so marking it as uncalled would be confusing and somewhat
pointless.
-mike
MVP
 
Back
Top