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

### Steps to reproduce 1. Convert a proprietary codebase (which I can't share, my apologies). 2. Wait a couple of hours 3. In phase 2, simplification, it crashes. ### Error...

### Input code ```vbnet Public Class Class1 Sub Foo() Dim xs As New List(Of String) Dim y = From x In xs Group By x.Length, x.Count() Into Group End Sub...

compilation error
VB -> C#

Problem: In VB.NET, you can write a LINQ query that has no 'select' keyword at the end, but C# requires it to be explicitly stated. This converter tries to add...

VB -> C#

The actual LINQ query that caused this error was really big, but I whittled it down using the online converter (great tool) to just this: ### VB.Net input code ```vbnet...

VB -> C#

### VB.Net input code ```vbnet Public Shared Function Get_List_of_States(Reinsurance_Year As Int16, Optional Agent_Entity_ID As Integer = 0) As List(Of State) Using db As New PRIMEEntities Dim results As List(Of State)...

exception caught
VB -> C#

### VB.Net input code ```vbnet Dim lstCropRecordsToDelete As List(Of PolicyCrop) = If lstCropRecordsToDelete.Count > 0 Then ' do stuff End If ``` ### Erroneous output ```C# var lstCropRecordsToDelete = if...

VB -> C#

This code is modified for brevity. Apologies if I made a technical mistake with the C# "group new by" code - the point is just the field names. ### VB.Net...

VB -> C#

My actual VB.Net code is a complicated LINQ query that gets error CS8122 on a part that says `Where (pd.Record_Type Is Nothing Or pd.Record_Type = "Acreage")` and gets converted to...

VB -> C#

### VB.Net input code ```vbnet Private Shared Sub LinqWithNullable() Dim a = New List(Of Integer?) From {1, 2, 3, Nothing} Dim result = From x In a Where x =...

compilation error
VB -> C#

# Visual studio versions For the VS extension, only VS2019 and VS2022 are supported. Since there is a free version of VS2022 community edition, it isn't worth the effort to...

help wanted
C# -> VB
VB -> C#