Code inspection: Convert property into auto-property (when possible)
This inspection reports a property with a trivial backing field that can be replaced with an auto-property, because the getter and setter only read from and write to the same field, without extra logic.
Example
class A
{
int p;
public int P
{
get { return p; }
set { p = value; }
}
}
class A
{
public int P { get; set; }
}
Quick-fix
Convert the property to an auto-property and remove the backing field.
30 March 2026