This is a migrated thread and some comments may be shown as answers.
Missing code
8 Answers 33 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kenneth Jackson
Top achievements
Rank 1
Kenneth Jackson asked on 24 Jul 2009, 01:14 PM
When converting code that has no c# equivalent from vb or vice versa , the converter just gives a comment line
along these lines

// ERROR: Not supported in C#: WithStatement


Is it possible to at least include the code commented underneath that has been "excluded" ?
Especially when converting multiple files it can be quite laborious and difficult to go backwards and forwards between original files to track whats missing and do the conversion manually. At least if its included we can do the conversion ourselves directly with ease.

Please :)

8 Answers, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 24 Jul 2009, 03:25 PM
Kenneth-

Thanks for the feedback! That is definitely a good idea and we'll try to explore the possibility of customizing the NRefactory engine to do that. I agree that it would be much easier to simply comment out the "unconvertable" code and add "TODO" comments so those lines are easy to find post-conversion.

-Todd
0
Jim K
Top achievements
Rank 1
answered on 03 Jan 2010, 08:01 AM
I uploaded a VB file and all I got back was a report with no C# code.  The end of the report was:

Report Details:
================================================
No potential conversion problems found in uploaded files.

End Report (0 total matches)

0
Todd Anglin
Top achievements
Rank 2
answered on 04 Jan 2010, 03:06 PM
Jim-

Thanks for the feedback. That is definitely an odd behavior. Can you send me the VB file (or a similar one that replicates the problem) so that I can test locally? We obviously don't save any code after conversions, but having your code will help us diagnose.

-Todd
0
Jim K
Top achievements
Rank 1
answered on 05 Jan 2010, 10:25 AM
I had to add a .gif to the file, as it only allows image files to be attached.

Jim

That did not work either as I received the following:
Reply to thread cannot be created because:
  • Please upload valid files: .gif,.jpg,.jpeg,.png smaller than 2MB.
0
Sebastian
Telerik team
answered on 05 Jan 2010, 02:00 PM
Hello Jim,

Indeed only image attachments are allowed in our public forums. You should either start a regular support ticket and provide the VB.NET code there or post a screenshot with short code snippet in this forum thread.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Todd Anglin
Top achievements
Rank 2
answered on 05 Jan 2010, 03:36 PM
Jim-

Also feel free to email your file to me: anglin at telerik dot com. You should probably send it as a plan .txt file to avoid any potential spam attachment problems. Either way, when we get to take a look at your file, we'll try to provide more insight regarding the conversion error you're seeing.

-Todd
0
Jim K
Top achievements
Rank 1
answered on 06 Jan 2010, 02:04 AM
Hi Todd,

I tried to send it, but only graphics can be sent. So I guess I'll just forget it.  Thanks anyway.

Jim

Hello Jim,

Indeed only image attachments are allowed in our public forums. You should either start a regular support ticket and provide the VB.NET code there or post a screenshot with short code snippet in this forum thread.

Best regards,
Sebastian
the Telerik team
0
Sebastian
Telerik team
answered on 06 Jan 2010, 08:32 AM
Hello Jim,

In addition to the options explained previously in this thread, you can paste your code using the 'Format code block' dialog of the forum editor.

Regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Code Converter
Asked by
Kenneth Jackson
Top achievements
Rank 1
Answers by
Todd Anglin
Top achievements
Rank 2
Jim K
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or