Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
TypeName |
AvoidUnusedPrivateFields |
CheckId |
CA1823 |
Category |
Microsoft.Performance |
Breaking Change |
Non-breaking |
Cause
This rule is reported when a private field in your code exists but is not used by any code path.
Rule Description
Private fields were detected that do not appear to be accessed in the assembly.
How to Fix Violations
To fix a violation of this rule, remove the field or add code that uses it.
When to Suppress Warnings
It is safe to suppress a warning from this rule.
Related Rules
CA1812: Avoid uninstantiated internal classes