2 problems I found with C# to VB converter

2 posts, 0 answers
  1. IFox
    IFox avatar
    1 posts
    Member since:
    Apr 2011

    Posted 28 Jul 2011 Link to this post

    1) The  Handles Me.Load event handler is missing after the conversion on the Page Load event.(and the other events are also missing).
    2) It converted this : AuditLogging("UnitStdID = " + intUnitStdID);   to this: AuditLogging("UnitStdID = " + intUnitStdID)
    Which causes the code to crash because it tries to add an integer field to a string.
    I changed it to AuditLogging("UnitStdID = " & intUnitStdID.ToString) in my code to make it work.

    But other than that, I am very grateful for this timesaving tool....

    Thank you.

  2. Todd
    Todd avatar
    66 posts

    Posted 29 Jul 2011 Link to this post

    Hi Angela,

    I'm glad you find the tool useful!

    Errors in the conversion like this usually trace back to the underlying, open source NRefactory engine that we consume for code conversion. We'll check with the NRefactory project to see if these problems have been addressed so we can improve the converter. Thanks for bringing them to our attention.

    Enjoy your converted code!


Back to Top