mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
15 lines
315 B
Plaintext
15 lines
315 B
Plaintext
/**
|
|
* @id cs/examples/constructor-call
|
|
* @name Call to constructor
|
|
* @description Finds places where we call 'new System.Exception(...)'.
|
|
* @tags call
|
|
* constructor
|
|
* new
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from ObjectCreation new
|
|
where new.getObjectType().hasFullyQualifiedName("System", "Exception")
|
|
select new
|