VB to C# converter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • craigkenisston@hotmail.com

    #1

    VB to C# converter

    Hi,

    I'm looking for a tool that converts VB to C#.
    I've take a look to a couple, though, they didn't totally conviced me.
    Any prize/complain about these kind of tools is welcome.

  • Bruce Wood

    #2
    Re: VB to C# converter

    Do you mean VB.NET to C#, or VB6 to C#? (The latter would be a
    frightening prospect, IMHO.)

    Comment

    • Gabriel Magana

      #3
      Re: VB to C# converter

      LOL, The best way to convert from VB6 to C#: 1) Redesign application, 2)
      Write new code from scratch.

      "Bruce Wood" <brucewood@cana da.com> wrote in message
      news:1136962460 .039796.172570@ g14g2000cwa.goo glegroups.com.. .[color=blue]
      > Do you mean VB.NET to C#, or VB6 to C#? (The latter would be a
      > frightening prospect, IMHO.)
      >[/color]


      Comment

      • Jon Skeet [C# MVP]

        #4
        Re: VB to C# converter

        craigkenisston@ hotmail.com wrote:[color=blue]
        > I'm looking for a tool that converts VB to C#.
        > I've take a look to a couple, though, they didn't totally conviced me.
        > Any prize/complain about these kind of tools is welcome.[/color]

        If you mean from VB.NET to C#, I've had success with InstantC#:
        Source code converters: Convert between C#, C++, Java, and VB with the most accurate and reliable source code converters


        Disclaimer: I have a free copy which was generously given to me for
        some reason (generally posting a lot, or something like that :)
        However, I'm not in the habit of saying something works when it
        doesn't!

        I haven't used it a lot, but the projects I *have* converted have been
        fine (after a little tweaking which I'd expect anyway).

        Jon

        Comment

        • Rudderius

          #5
          Re: VB to C# converter

          craigkenisston@ hotmail.com wrote:[color=blue]
          > Hi,
          >
          > I'm looking for a tool that converts VB to C#.
          > I've take a look to a couple, though, they didn't totally conviced me.
          > Any prize/complain about these kind of tools is welcome.
          >[/color]
          If you mean VB.NET why do you want to convert it? I tought the language
          is unimportant with .NET ...

          Comment

          • Jon Skeet [C# MVP]

            #6
            Re: VB to C# converter

            Rudderius wrote:[color=blue][color=green]
            > > I'm looking for a tool that converts VB to C#.
            > > I've take a look to a couple, though, they didn't totally conviced me.
            > > Any prize/complain about these kind of tools is welcome.
            > >[/color]
            > If you mean VB.NET why do you want to convert it? I tought the language
            > is unimportant with .NET ...[/color]

            It's unimportant to the CLR. It may be important to the developer.

            Case in point: I found an MSDN article about some code to format source
            code nicely. The code was in VB.NET. It worked well, but I wanted to
            change it. Initially I played around with it in VB.NET, but every time
            I added something, it was a bit painful. I certainly didn't want to
            attempt the large-scale refactoring it really needed.

            I converted the code to C#, and then I was able to manipulate it with
            much more confidence.

            Jon

            Comment

            • GreenSC

              #7
              Re: VB to C# converter

              check out this site:


              Hello Rudderius,
              [color=blue]
              > craigkenisston@ hotmail.com wrote:
              >[color=green]
              >> Hi,
              >>
              >> I'm looking for a tool that converts VB to C#.
              >> I've take a look to a couple, though, they didn't totally conviced
              >> me.
              >> Any prize/complain about these kind of tools is welcome.[/color]
              > If you mean VB.NET why do you want to convert it? I tought the
              > language is unimportant with .NET ...
              >[/color]


              Comment

              • Rudderius

                #8
                Re: VB to C# converter

                Hi Jon,

                I agree that it may be important to the developer. I prefer C#/Java-like
                syntax to VB.NET, Delhpi because of the readability.

                The only reason I wanted to mention this is because I've seen people
                converting a whole program without changing anything; in my opinion: a
                wast of time! If you want to change something, then I can understand you
                want to convert it.[color=blue]
                >
                > It's unimportant to the CLR. It may be important to the developer.
                >
                > Case in point: I found an MSDN article about some code to format source
                > code nicely. The code was in VB.NET. It worked well, but I wanted to
                > change it. Initially I played around with it in VB.NET, but every time
                > I added something, it was a bit painful. I certainly didn't want to
                > attempt the large-scale refactoring it really needed.
                >
                > I converted the code to C#, and then I was able to manipulate it with
                > much more confidence.
                >
                > Jon
                >[/color]

                Comment

                Working...