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

Copy
  class Zoo {
      private int monkeys;
      void KillMonkeys () {
          bool monkeys = false;  // defect - local variable hides a class member
      }
  }