mirror of
https://github.com/github/codeql.git
synced 2026-02-23 02:13:41 +01:00
11 lines
316 B
Plaintext
11 lines
316 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 = getInvokedDisposeMethod(t) and
|
|
if implementsDispose(t) then b = true else b = false
|
|
select t, getFullyQualifiedNameWithTypes(m), b
|