VB -> C#: String comparison doesn't follow VB's special logic after conversion #105
Labels
output logic error
A bug where the converted output behaves differently to the input code
VB -> C#
Specific to VB -> C# conversion
Input code
Erroneous output
Expected output
Details
Product in use: both
Version in use: 5.6.3
String operators
=
and<>
should be converted to things that treatnull
and""
as equal.x = y
->Microsoft.VisualBasic.CompilerServices.Operators.CompareString(string, string, bool) == 0
*
x <> y
->Microsoft.VisualBasic.CompilerServices.Operators.CompareString(string, string, bool) != 0
CodeConverter/TestData/SelfVerifyingTests/VBToCS/ExpressionTests.vb
Lines 21 to 26 in dd45721
The text was updated successfully, but these errors were encountered: