We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c4e1fc commit 31e12f7Copy full SHA for 31e12f7
1 file changed
csharp/ql/lib/semmle/code/csharp/frameworks/System.qll
@@ -346,11 +346,11 @@ class SystemStringClass extends StringType {
346
result.hasName("==")
347
}
348
349
- /** Gets the `Replace(string/char, string/char)` method. */
+ /** Gets the `Replace(...)` method. */
350
Method getReplaceMethod() {
351
result.getDeclaringType() = this and
352
result.hasName("Replace") and
353
- result.getNumberOfParameters() = 2 and
+ result.getNumberOfParameters() in [2 .. 4] and
354
result.getReturnType() instanceof StringType
355
356
0 commit comments