CS.HIDDEN.MEMBER.LOCAL.CLASS

Class data member is hidden by a local variable.

Vulnerability and risk

When local variables hide members of containing classes, those members become accessible only through 'this' link. This behaviour is most likely not intended.

Example 1

1  class Zoo {
2      private int monkeys;
3      void KillMonkeys () {
4          bool monkeys = false;  // defect - local variable hides a class member
5      }
6  }