Export (0) Print
Expand All

Avoid unused private fields

TypeName

AvoidUnusedPrivateFields

CheckId

CA1823

Category

Microsoft.Performance

Breaking Change

NonBreaking

This rule is reported when a private field in your code exists but is not used by any code path.

Private fields were detected that do not appear to be accessed within the assembly.

To fix a violation of this rule, remove the field, or add code that uses it.

It is safe to exclude a warning from this rule.

Community Additions

ADD
Show:
© 2014 Microsoft