CodeConverter icon indicating copy to clipboard operation
CodeConverter copied to clipboard

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

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

When I begin with the following in VB: ``` ``` ``` Class MainWindow Public Property AwesomeColor As Brush Get Return GetValue(AwesomeColorProperty) End Get Set(value As Brush) SetValue(AwesomeColorProperty, value) End Set...

VB -> C#

### VB.Net input code ```vbnet MsgBoxResult MsgBoxRet; ... MsgBoxRet = MsgBox(sMLS, MsgBoxStyle.Question Or MsgBoxStyle.YesNo, Application.ProductName.ToString()) ... if (MsgBoxRet == MsgBoxResult.Yes) ``` ### Erroneous output ```C# MsgBoxRet = Interaction.MsgBox(sMLS, MsgBoxStyle.Question |...

VB -> C#

### VB.Net input code ```vbnet Public Class Test Public Function IsNullable(ByVal type As Type) As Boolean Return type.IsGenericType AndAlso type.GetGenericTypeDefinition() Is GetType(Nullable(Of)) End Function End Class ``` ### Erroneous output...

VB -> C#

### VB.Net input code ```vbnet Public Class Test Public Sub Test() Dim data = From d In {1.2, 2.2, 3.4, 5.6} Select i = CType(Math.Floor(d), Integer) Where i Mod 2...

VB -> C#

When applying extension methods with ref parameters to properties, they should be handled in the same way as ref parameters in regular methods. ### VB.Net input code ```vbnet Public Class...

VB -> C#

Shorthand assignment operators like "+=" or "-=" are not resolved for parameterized properties. ### VB.Net input code ```vbnet Public Class TestClass Private _items As Integer() = New Integer() {1} Public...

VB -> C#

Converting ReDim Preserve on an array property throws ` CS0206: A property or indexer may not be passed as an out or ref parameter ` while Array.Resize is converted correctly...

VB -> C#

IEnumerable.Select is replaced with Enumerable.Select if predicate is empty. Same happens to .Zip() and .OrderBy() but not to .Where(). It seems to be depended on the extension method used afterwards,...

VB -> C#

### Steps to reproduce 1. Right click any vb file in Solution Explorer 2. "Convert to C#" does not appear on the context menu. The last item on the menu...

### VB.Net input code We need a C# project with a class like this: ```cs [System.Reflection.DefaultMember(nameof(Caption))] public class ClassWithReflectionDefaultMember { public string Caption { get; set; } } ``` Then...

VB -> C#