CodeConverter icon indicating copy to clipboard operation
CodeConverter copied to clipboard

Convert code from C# to VB.NET and vice versa using Roslyn

Results 104 CodeConverter issues
Sort by recently updated
recently updated
newest added

Related info for aspx is probably relevant here: https://github.com/icsharpcode/CodeConverter/issues/175 May be necessary to use things like * https://docs.microsoft.com/en-us/dotnet/api/system.web.compilation.buildprovider?redirectedfrom=MSDN&view=netframework-4.7.2, * https://github.com/dotnet/roslyn/issues/11324#issuecomment-263020905 to get the syntax tree, or may already be in...

enhancement

### VB.Net input code ```vbnet Public Class VisualBasicClass Sub Main Console.WriteLine(Example) End Sub Public Readonly Property Example As Long Get Static StaticVar As Long = LongRunningFunction Return StaticVar -1 End...

VB -> C#

Whitespace trivia gets lost when converting VB to C# ### Input code ```vbnet Class Program Public Shared Sub Main(ByVal args As String()) Dim x = "a" & "b" & "c"...

enhancement
VB -> C#

### VB.Net input code ```vbnet Public Class VisualBasicClass Public Class C1 Public Property C2p As C2 Public Property A As Decimal End Class Public Class C2 Public Property P1 As...

VB -> C#

Sorry, my friend, this is very interesting project to me, because I write in rare lang VB.NET, but any call your converter induce error below. This is input C# code...

help wanted
output logic error
C# -> VB
VB -> C#

Seems like a pretty serious bug, as it may screw up control flow significantly and lead to completely unexpected results. ### VB.Net input code ```vbnet If OUTER Then If FOO1...

output logic error
VB -> C#

### VB.Net input code ```vbnet Module StringExtensions Public Sub Print(x As ITest) End Sub Public Interface ITest End Interface Public Class Test Implements ITest Public Sub Method() Print() End Sub...

compilation error
VB -> C#

**2023-12-10: Yet to find an acceptable general way to handle this since they're all way too messy. Still happy to take specific common examples that could be easily handled** *...

help wanted
exception caught
VB -> C#

Property in the interface being implemented non-public setter/getter i.e.: ```vb Interface IFoo Property Prop As Integer End Interface Class Foo Implements IFoo Property Prop As Integer Implements IFoo.Prop Get End...

compilation error
VB -> C#

Accessing backing field of the autogenerated property where MyClass is involved: ```vb Class Foo Overridable Property Prop As Integer = 5 Sub Test() _Prop = 10 ' This should convert...

output logic error
VB -> C#