New analyzer:
A lot of legacy code (and a surprising amount of new code) contains statements that update a variable by adding to it or multiplying it. This can be replaced by an increment
Before:
a = a + b
c = c * d
e = e / f
g = h - i
After:
a += b
c *= d
e /= f
g -= i
Diagnostic Id: CC0116
Category: Style
Severity: Info
This is for both C# and VB.
New analyzer:
A lot of legacy code (and a surprising amount of new code) contains statements that update a variable by adding to it or multiplying it. This can be replaced by an increment
Before:
After:
Diagnostic Id:
CC0116Category:
StyleSeverity:
InfoThis is for both C# and VB.