There was an error while loading. Please reload this page.
Suggested category: Performance Suggested default severity: Suggestion Fix is breaking or non-breaking: Non-breaking
This rule locates calls to Contains(String) when the string consists of a single char, and suggests using Contains(char) instead
Contains(String)
char
Contains(char)
When Contains(String) is used with a single char, the call can be safely substituted with Contains(char).
#24068 dotnet/coreclr#15740 #36310