Reporter | Alexander (sash_subscr) |
---|---|
Created | Jan 15, 2012 4:41:28 PM |
Updated | Jan 15, 2012 4:45:02 PM |
Priority | Normal |
Type | Feature |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | Code Analysis |
Affected versions | 6.1 |
Fixed in build | No Fixed in build |
// string.IsNullOrEmpty(str) can be removed.
string str = Request.QueryString["name"];
if (string.IsNullOrEmpty(str) || str != "not empty const string")
{ ... }
// (str == null) can be removed.
string str = Request.QueryString["name"];
if (str == null || str != "const string")
{ ... }
string str = Request.QueryString["name"];
if (string.IsNullOrEmpty(str) || str != "not empty const string")
{ ... }
// (str == null) can be removed.
string str = Request.QueryString["name"];
if (str == null || str != "const string")
{ ... }