Skip to content

Commit 9b349eb

Browse files
committed
C#: Use Contains instead of IndexOf
1 parent 5b33f43 commit 9b349eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/extractor/Semmle.Extraction.CSharp/SymbolExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public static void BuildDisplayName(this ITypeSymbol type, Context cx, TextWrite
369369
case TypeKind.Array:
370370
var array = (IArrayTypeSymbol)type;
371371
var elementType = array.ElementType;
372-
if (elementType.MetadataName.IndexOf("`") >= 0)
372+
if (elementType.MetadataName.Contains("`"))
373373
{
374374
trapFile.Write(elementType.Name);
375375
return;

0 commit comments

Comments
 (0)