Files
codeql/csharp/ql/test/library-tests/properties/Properties4.ql
2018-08-02 17:53:23 +01:00

15 lines
285 B
Plaintext

/**
* @name Test for properties
*/
import csharp
from Property p
where p.hasName("Next")
and p.isReadOnly()
and p.isPublic()
and p.getGetter().hasBody()
and p.getDeclaringType().hasQualifiedName("Properties.Counter")
and not exists(p.getSetter())
select p, p.getGetter()