CS.HIDDEN.MEMBER.PARAM.CLASS
Class data member is hidden by a function parameter.
Vulnerability and risk
When function parameters 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 deers;
int numberOfSpecies;
void LodgeDeers (bool deers) { // defect - method parameter hides a class member
if (deers)
numberOfSpecies++;
}
}