mirror of
https://github.com/github/codeql.git
synced 2026-03-27 01:38:22 +01:00
13 lines
303 B
Plaintext
13 lines
303 B
Plaintext
/**
|
|
* @name Test for properties
|
|
*/
|
|
import csharp
|
|
|
|
from Property p
|
|
where p.hasName("Count")
|
|
and p.getDeclaringType().hasQualifiedName("System.Collections.Generic.List<>")
|
|
and not p.isAutoImplemented()
|
|
and not p.isStatic() and p.isPublic()
|
|
and p.getType() instanceof IntType
|
|
select p.toString()
|