Skip to content

Commit 7bc3dfa

Browse files
iRon7liamjpeters
andauthored
Update Rules/AvoidUsingArrayList.cs
Co-authored-by: Liam Peters <liamjpeters@gmail.com>
1 parent c0aa82b commit 7bc3dfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Rules/AvoidUsingArrayList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
5555
break;
5656
}
5757
}
58-
if (ArrayListName == null) { ArrayListName = new Regex(@"^(System\.)?Collections\.ArrayList", RegexOptions.IgnoreCase); }
58+
if (ArrayListName == null) { ArrayListName = new Regex(@"^(System\.)?Collections\.ArrayList$", RegexOptions.IgnoreCase); }
5959

6060
// Find all type initializers that create a new instance of the ArrayList class.
6161
IEnumerable<Ast> typeAsts = ast.FindAll(testAst =>

0 commit comments

Comments
 (0)