Files
codeql/csharp/ql/test/library-tests/csharp9/initOnlyProperty.ql
2020-12-11 10:06:38 +01:00

8 lines
168 B
Plaintext

import csharp
private string getType(Setter s) { if s.isInitOnly() then result = "init" else result = "set" }
from Setter s
where s.fromSource()
select s, getType(s)