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

17 lines
293 B
Plaintext

/**
* @name Test for fields
*/
import csharp
from Field f, Class c
where
f.getName() = "Black" and
f.getDeclaringType() = c and
c.hasFullyQualifiedName("Fields", "Color") and
f.getType() = c and
f.isStatic() and
f.isPublic() and
f.isReadOnly()
select f, f.getDeclaringType()