CA1823: Avoid unused private fields
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, use the version selector at the top left. We recommend upgrading to Visual Studio 2019. Download it here
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.
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.