Files
codeql/csharp/ql/test/library-tests/cil/dataflow/TrivialProperties.ql
2022-12-06 12:05:48 +01:00

16 lines
502 B
Plaintext

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