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

17 lines
336 B
Plaintext

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