VB -> C#: multiline interpolated string with just format-blocks doesn't convert correctly (missing @)
jrmoreno1 opened this issue · 0 comments
jrmoreno1 commented
VB.Net input code
Public Class VisualBasicClass
Sub Test()
Dim v1 = 1
Dim v2 = 2
Dim testStr= $"What's up with {v1}
{v2}"
Console.Writeline(testStr)
End Sub
End Class
Erroneous output
public partial class VisualBasicClass
{
public void Test()
{
int v1 = 1;
int v2 = 2;
string testStr = $"What's up with {v1}
{v2}";
Console.Writeline(testStr);
}
}
Expected output
public partial class VisualBasicClass
{
public void Test()
{
int v1 = 1;
int v2 = 2;
string testStr = $@"What's up with {v1}
{v2}";
Console.Writeline(testStr);
}
}
Details
- Product in use: both extension and website
- Version in use: 9.2.5.0
- Don't know if it was ever working or not.
- Might be able to contribute a fix