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

16 lines
512 B
Plaintext

import csharp
import semmle.code.csharp.commons.QualifiedName
from TrivialProperty prop, string namespace, string type, string name
where
prop.getDeclaringType().hasFullyQualifiedName(namespace, type) and
(
namespace = "System.Reflection" and type = "AssemblyName"
or
namespace = "System.Collections" and type = "DictionaryEntry"
or
namespace = "Dataflow" and type = "Properties"
) and
prop.hasFullyQualifiedName(namespace, type, name)
select getQualifiedName(namespace, type, name)