Files
codeql/csharp/ql/test/library-tests/frameworks/system/Equals/Equals.ql
2024-04-08 13:46:45 +02:00

11 lines
314 B
Plaintext

import csharp
import semmle.code.csharp.commons.QualifiedName
import semmle.code.csharp.frameworks.System
from ValueOrRefType t, Method m, boolean b
where
t.fromSource() and
m = getInvokedEqualsMethod(t) and
if implementsEquals(t) then b = true else b = false
select t, getFullyQualifiedNameWithTypes(m), b