mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
13 lines
301 B
Plaintext
13 lines
301 B
Plaintext
/**
|
|
* @name Test for delegate creations
|
|
*/
|
|
import csharp
|
|
|
|
from Method m, ExplicitDelegateCreation e
|
|
where m.hasName("MainDelegateAndMethodAccesses")
|
|
and e.getEnclosingCallable() = m
|
|
and e.getDelegateType().hasName("D")
|
|
and e.getArgument().(MethodAccess).getTarget().hasName("M1")
|
|
select m, e
|
|
|