Files
codeql/csharp/ql/test/library-tests/conversion/operator/Operator.ql
2019-08-30 11:47:43 +01:00

18 lines
437 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" and
s2 != "EventSourceActivity"
select s1, s2 order by s1, s2