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

16 lines
297 B
Plaintext

/**
* @name Test for fields
*/
import csharp
from Field f
where
f.getName() = "Y" and
f.getDeclaringType().hasFullyQualifiedName("Fields", "A") and
f.getType() instanceof IntType and
not exists(f.getInitializer()) and
f.isPublic() and
f.isStatic()
select f, f.getType().toString()