Files
codeql/csharp/ql/test/library-tests/csharp8/UnmanagedGenericStructs.ql
2021-06-03 13:01:42 +02:00

6 lines
159 B
Plaintext

import csharp
from TypeParameter tp
where tp.getConstraints().hasUnmanagedTypeConstraint() and tp.fromSource()
select tp, "This type parameter is unmanaged."