See Also: AvoidUnusedPrivateFieldsRule Members
Example
public class Bad {
int level;
bool b;
public void Indent ()
{
level++;
#if DEBUG
if (b) Console.WriteLine (level);
#endif
}
}
Example
public class Good {
int level;
#if DEBUG
bool b;
#endif
public void Indent ()
{
level++;
#if DEBUG
if (b) Console.WriteLine (level);
#endif
}
}