Home > Code Analysis > Code Issues – Unused setter

Code Issues – Unused setter

January 23rd, 2011

Cause:

This code issue shows a dead code when there are unreferenced private property setters. Unused property setters of private properties can be safely removed, which will improve code readability.

Sample:

CodeRush Unused Setter Sample

How to fix:

  • Apply the Remove Setter┬ácode fix:

CodeRush Remove Setter Fix

—–
Products: CodeRush Pro
Versions: 12.1 and up
VS IDEs: any
Updated: Nov/12/2012
ID: C054

Similar Posts: