Files
codeql/csharp/ql/test/library-tests/properties/Properties14.ql
2023-11-10 08:46:15 +01:00

16 lines
316 B
Plaintext

/**
* @name Test for properties
*/
import csharp
from Property p
where
p.hasName("Count") and
p.getDeclaringType().hasFullyQualifiedName("System.Collections.Generic", "List`1") and
not p.isAutoImplemented() and
not p.isStatic() and
p.isPublic() and
p.getType() instanceof IntType
select p.toString()