ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Code inspection: Auto-property accessor is never used (private accessibility)

Last modified: 04 November 2024

This inspection reports private auto-properties that have nominal usages, but may not do anything meaningful because one of their accessors is never used.

Here is an example that illustrates the issue in a simple case: