mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
15 lines
286 B
Plaintext
15 lines
286 B
Plaintext
/**
|
|
* @name Test for properties
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Property p
|
|
where
|
|
p.hasName("Caption") and
|
|
p.isReadWrite() and
|
|
p.isPublic() and
|
|
p.getGetter().getAssemblyName() = "get_Caption" and
|
|
p.getSetter().getAssemblyName() = "set_Caption"
|
|
select p, p.getGetter(), p.getSetter()
|