CA1823: Avoid unused private fields

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

TypeNameAvoidUnusedPrivateFields
CheckIdCA1823
CategoryMicrosoft.Performance
Breaking ChangeNon-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.

CA1812: Avoid uninstantiated internal classes

CA1801: Review unused parameters

CA1804: Remove unused locals

CA1811: Avoid uncalled private code

Show: