Permalink
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (25 sloc) 743 Bytes

RCS1113: Use 'string.IsNullOrEmpty' method

Property Value
Id RCS1113
Category Usage
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

if (s == null || s.Length == 0) // RCS1113
{
}

Code with Fix

if (string.IsNullOrEmpty(s))
{
}

See Also

(Generated with DotMarkdown)