All rules
IDE0032Language rules (expression-level preferences)
Use auto-implemented property
Use auto-implemented property
Microsoft docsDescription
This style rule concerns the use of automatically implemented properties versus properties with private backing fields.
Example
// dotnet_style_prefer_auto_properties = true
public int Age { get; }
// dotnet_style_prefer_auto_properties = false
private int age;
public int Age
{
get
{
return age;
}
}Configurable options
Vote for the value each option should take in the generated .editorconfig.
dotnet_style_prefer_auto_properties default:
trueYour vote
Group results
0 yes 0 no
ConsensusNone (disabled)
Severity preference (yes voters)
Suggestion0
Warning0
Error0