How to check if variable is used?

  • Thread starter Thread starter dieter
  • Start date Start date
D

dieter

Hi,

How can I check, automatically, if a variable declared in a function is used
in that function? I have looked at FXCop, but didn't find a solution.


Greetings,

Dieter
 
No idea except to say that the C# background compilier seems to do this
automatically.
I'm surprised FxCop doesn't pick up this.

Richard
 
I guess you can create a class with a member that would be this variable
instead and then Read it as a Property. and in that Property Get Sub you can
also set another property (IsVariable1Used) as True or something

Or is that to much of an overkill?

/lars
 
Back
Top