Description
Suggested category: Performance
Suggested default severity: Suggestion
Fix is breaking or non-breaking: Non-breaking
Cause
This rule locates calls to Contains(String)
when the string consists of a single char
, and suggests using Contains(char)
instead
Rule description
When Contains(String)
is used with a single char
, the call can be safely substituted with Contains(char)
.