| layout | page |
|---|---|
| title | CC0017 |
| tagline | SwitchToAutoPropAnalyzer |
|TypeName|SwitchToAutoPropAnalyzer | |Check Id | CC0017 | |Category | Style | |Severity | Info |
Auto properties offer a more concise way of defining a property. If you are using simple getters and setters you are able to simplify your code with autoproperties.
{% highlight csharp %} private int id; public int Id { get { return id; } set { id = value; } } {% endhighlight %}
A code fix will be presented to you that will transform the code:
{% highlight csharp %} public int Id { get; set; } {% endhighlight %}

None
TBD