You must Sign In to post a response.
  • Category: .NET

    C# to vb.net converter

    The c# to vb.net converter provided incorrect syntax. How would this be converted to vb.net:

    Private Shared Cache As ObjectCache = > MemoryCache.Default
  • #769125
    Hi,

    We have several 3rd party sites to convert your language from one to another.

    Here is the one of the sample for your reference.
    http://converter.telerik.com/

    Hope this helps you...

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #769130
    Yes, the telerik converter had issues also with this line of code. It's actually very easy and I figured it out:

    Private Shared Cache As ObjectCache = MemoryCache.Default

  • #769144
    You can use this URL to online C# to VB.net convert
     http://www.dotnetspider.com/convert/Csharp-To-Vb.aspx

    How to convert
    First you need to post you source code which you want to convert and click convert button. Example as given
    using System;

    public class MyClass
    {
    static void Main(string[] args)
    {
    Console.WriteLine("Hello !");
    }
    }

    VB.net code
    Public Class MyClass
    Shared Sub Main(ByVal args() As String)
    Console.WriteLine("Hello !")
    End Sub
    End Class

  • #769147
    There are lot of C# to VB convertor you can use.
    see trailing links for more details
    http://converter.telerik.com/
    http://codeconverter.sharpdevelop.net/SnippetConverter.aspx
    http://www.carlosag.net/tools/codetranslator/
    http://www.developerfusion.com/tools/convert/csharp-to-vb/

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #769172
    There are mean types of tools to converter c# code to VB.net cord ,It is give below.
    1-http://converter.telerik.com/
    In this link convert your code C# to VB.net or VB.net to C# for the online .
    2-http://www.carlosag.net/tools/codetranslator/
    you just start typing the code or upload a file to convert c# to convert to VB.net.
    Both are method used to convert in your cord.


  • Sign In to post your comments