CodeConverter
CodeConverter copied to clipboard
Convert code from C# to VB.NET and vice versa using Roslyn
### VB.Net input code ```vbnet Dim i As Integer Dim d As Decimal i = d ``` ### Erroneous output ```C# int i; var d = default(decimal); i = (int)Math.Round(d);...
### VB.Net input code ```vbnet Public Class FieldInitializationTest Private First As New Inner() Private Second As New Outer(First) End Class Public Class Inner End Class Public Class Outer Sub New(inner...
### VB.Net input code ```vbnet Imports System.Drawing Public Class VisualBasicClass Public Sub M() Dim Shape = New Point() With { .X = 1, .Y = .X } End Sub End...
### VB.Net input code ```vbnet Public Class ConversionTest7 Private Class MyEntity Property EntityId As Integer Property FavoriteColorId As Integer Property Name As String End Class Private Class MyColor Property ColorId...
Perhaps this should not be an issue or a feature request but I think it's worthy of discussion, and we can always delete later if needed. I'm about to Migrate...
### VB.Net input code ```vbnet Sub S() Dim what = Microsoft.Office.Interop.Word.WdGoToItem.wdGoToLine Dim objRange As Microsoft.Office.Interop.Word.Range objRange = objRange.GoTo(what, , -1) objRange = objRange.GoTo(what, Nothing, -1) End Sub ``` where the...
### VB.Net input code We need a C#-project with a `ref return` first, f.e. ```cs public class MySpecialList { private T dummy; public ref T this[int i] { get {...
### Steps to reproduce 1. Create a solution of multiple projects and some of the projects being a VBPROJ and used by other projects. 2. Convert a VB project to...
**Is your feature request related to a problem? Please describe.** I'm always frustrated when a hexadecimal constant is converted in a way I can't search for it anymore (in some...
We have a solution with 33 projects, It is currently in UWP + Xaml Islands, as this seems to be not the way forwards now I would like to try...