Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (22 sloc) 529 Bytes

RCS1107: Remove redundant 'ToCharArray' call

Property Value
Id RCS1107
Category Redundancy
Severity Info

Example

Code with Diagnostic

foreach (char ch in s.ToCharArray()) // RCS1107
{
}

Code with Fix

foreach (char ch in s)
{
}

See Also

(Generated with DotMarkdown)