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

### VB.Net input code Requires a reference to "Microsoft Outlook 16.0 Object Library". ```vbnet Imports Microsoft.Office.Interop.Outlook Module Module1 Sub Main() End Sub Sub Test(item As MailItem) Dim p = item.UserProperties.Find("abc")...

VB -> C#

Hi, I am looking for a way to speed up my conversion time. I looked at ours overall busniness code and we only have a few utilisation of the key...

### VB.Net input code ```vbnet Option Compare Text Imports System Imports Microsoft.VisualBasic Public Class VisualBasicClass Public Shared Sub Main() Dim s = ChrW(&H2060) & ChrW(&H2060) Console.WriteLine(s = "") Console.WriteLine(s =...

output logic error
VB -> C#

### VB.Net input code ```vbnet In VB.net, a class can contain a method with the same name as the class. Lets call this class 'someclass'. In the aspx file, a...

VB -> C#

### Input code ```csharp using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; namespace CMM_AutoPostProcess { public class GetTargets2 { public void Targets(string file) { string JobID; int FileNameStart; int FileNameLength;...

C# -> VB

Spike relates to #172 Best solution available is probably to match the vbhtml structure against the generated vb document (which follows a simple pattern), then manually call to convert each...

### VB.Net input code ```vbnet Friend Module SomeModule Sub M() : End Sub Declare Sub External Lib "lib.dll" () End Module ``` ### Erroneous output ```C# internal static class SomeModule...

VB -> C#
Small

### VB.Net input code ```vbnet Sub M(Optional a As String = "a", ByRef Optional b As String = "b") Dim s As String = "" M() 'omitted implicitely M(,) 'omitted...

VB -> C#

### VB.Net input code ```vbnet Public Class ByRefConstArgument Public Const i As Integer = 0 Public Sub M(ByRef o As Object) M(i) End Sub End Class ``` ### Erroneous output...

VB -> C#

### Input code ```csharp internal class NameGenerator { private readonly Func _getValidIdentifier; private NameGenerator(Func getValidIdentifier) => _getValidIdentifier = getValidIdentifier; } ``` ### Erroneous output ```vbnet Friend Class NameGenerator Private ReadOnly...

enhancement
C# -> VB