Property | Value |
---|---|
Id | RR0144 |
Title | Call string.IndexOf instead of string.Contains |
Syntax | method invocation |
Span | method name |
Enabled by Default | ✓ |
if (s.Contains("a"))
{
{
if (s.IndexOf("a", StringComparison.OrdinalIgnoreCase) != -1)
{
{
(Generated with DotMarkdown)