Files
codeql/csharp/ql/test/library-tests/conversion/operator/Operator.ql
2018-12-20 10:19:59 +01:00

17 lines
403 B
Plaintext

import semmle.code.csharp.Conversion
from Type sub, Type sup, string s1, string s2
where
convConversionOperator(sub, sup) and
sub != sup and
s1 = sub.toString() and
s2 = sup.toString() and
/*
* Remove certain results to make the test output consistent
* between different versions of .NET Core.
*/
s2 != "FormatParam" and
s2 != "StringOrCharArray"
select s1, s2 order by s1, s2