mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
16 lines
297 B
Plaintext
16 lines
297 B
Plaintext
/**
|
|
* @name Test for properties
|
|
*/
|
|
|
|
import csharp
|
|
|
|
from Property p
|
|
where
|
|
p.hasName("Y") and
|
|
p.getDeclaringType().hasQualifiedName("Properties.B") and
|
|
p.isReadWrite() and // overrides a property that is readwrite
|
|
not p.isAutoImplemented() and
|
|
p.isOverride() and
|
|
p.isPublic()
|
|
select p
|