TypeName | RedundantFieldAssignmentAnalyzer |
Check Id | CC0034 |
Category | Usage |
Severity | Info |
It’s recommend not to assign the default value to a field as a performance optimization.
class SampleClass
{
private int number = 0;
// ...
}
A code fix will be presented to you that will transform the code, it will remove the initialization with the default value.
class SampleClass
{
private int number;
// ...
}
TBD
TBD