Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CA1823: Avoid unused private fields

TypeName

AvoidUnusedPrivateFields

CheckId

CA1823

Category

Microsoft.Performance

Breaking Change

Non-breaking

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 in the assembly.

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

It is safe to suppress a warning from this rule.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.