| layout | page |
|---|---|
| title | CC0015 |
| tagline | UnnecessaryParenthesisAnalyzer |
|TypeName|UnnecessaryParenthesisAnalyzer | |Check Id | CC0015 | |Category | Style | |Severity | Warning |
There is no need to specify that the no-parameter constructor is used with an initializer as it is implicit
{% highlight csharp %} var p = new Person() { X = 1 }; {% endhighlight %}
A code fix will be presented to you that will transform the code:
{% highlight csharp %} var p = new Person { X = 1 }; {% endhighlight %}

None
TBD