New analyzer:
Replace if statement or operator with call to Math.Max.
Max is easier to read and quite often shorter.
Before:
After:
You can add more information here, e.g. conditions under which a diagnostic should not trigger, etc.
Diagnostic Id: CC0124
Category: Maintainability
Severity: Info
New analyzer:
Replace if statement or operator with call to Math.Max.
Max is easier to read and quite often shorter.
Before:
After:
You can add more information here, e.g. conditions under which a diagnostic should not trigger, etc.
Diagnostic Id:
CC0124Category:
MaintainabilitySeverity:
Info