CS.HIDDEN.MEMBER.LOCAL.STRUCT

Struct data member is hidden by a local variable.

Vulnerability and risk

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

Example 1

Copy
  struct Zoo {
      private int bears;
      void KillBears () {
          bool bears = false;  // defect - local variable hides a struct member
      }
  }