C#


ROSLYN.PERFORMANCE.CA1823 : Avoid unused private fields (C#)

See Roslyn-Detected C# Warning Classes for more information.

Summary

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

This check corresponds to Roslyn rule CA1823. For full rule details, see the Microsoft website: CA1823.

Properties

Class Name Avoid unused private fields (C#)
Significance reliability
Mnemonic ROSLYN.PERFORMANCE.CA1823
Categories None
Availability Available for C# only.
Enabling Checks for this warning class are disabled by default. To enable them, add the following WARNING_FILTER rule to the project configuration file.
WARNING_FILTER += allow class="Avoid unused private fields (C#)"

Relevant Configuration File Parameters

The following configuration file parameters affect checks for this warning class.