Files
codeql/csharp/ql/test/library-tests/frameworks/system/Dispose/Dispose.ql
2023-11-10 08:46:15 +01:00

10 lines
269 B
Plaintext

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