This:
if(name == "") {}
if(name == string.Empty) {}
if(name == null){}
if(name != "") {}
if(name != string.Empty) {}
if(name != null){}
Becomes:
if (string.IsNullOrEmpty(name)) { }
if (string.IsNullOrEmpty(name)) { }
if (string.IsNullOrEmpty(name)) { }
or (different code fix)
if (!string.IsNullOrWhiteSpace(name)) { }
if (!string.IsNullOrWhiteSpace(name)) { }
if (!string.IsNullOrWhiteSpace(name)) { }
Category: Refactoring
Id: CC0113
Severity: Hidden
This:
Becomes:
or (different code fix)
Category: Refactoring
Id: CC0113
Severity: Hidden