This is a migrated thread and some comments may be shown as answers.

#region CS to VB improvement required

6 Answers 138 Views
Code Converter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
dhlennon
Top achievements
Rank 1
dhlennon asked on 29 Apr 2007, 11:43 AM
These do not convert correctly

example:

(c#)
#region Instance Fields
..
#endregion

when converted to VB remain unaltered.
In VB should be

#Region "Instance Fields"
..
#End Region

hence, converter needs to place region name in quotes in opening statement, and add space betwen "end" and "region" in closing clause


6 Answers, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 23 May 2007, 03:57 PM
Dhlennon-

That is a great observation. Unfortunately, this is a converter complier issue specific to NRefactory so we need to channel this info to the SharpDevelop.net developers. Please visit the Sharp Develop forums and help the NRefactory devs improve the open source engine.

Thanks for the great feedback.

Thanks~
Todd
0
Chandan
Top achievements
Rank 1
answered on 01 Jun 2007, 10:48 AM
Yes, this converter is not able to work fully. I am able to convert all the codes. I am trying to convert the VB to C# but display error messge. Says check your original code for some error but my original vb code is well running in my project.
0
Todd Anglin
Top achievements
Rank 2
answered on 01 Jun 2007, 01:21 PM
Chandan-

That is interesting. Can you please provide more details about what doesn't work for you? I can't really do much to address the problem based on your current description, but with some more info we might be able to help.

Thanks~
Todd
0
Todd Anglin
Top achievements
Rank 2
answered on 12 Jul 2007, 05:17 AM
Dhlennon-

Just a quick update: the Converter has been updated and it now handles #Region conversions much better than before. Read all about the new updates here:

http://telerikwatch.com/2007/07/

converter-updated-new-batch-mode-added.html

Hope you enjoy the updates!

Thanks~
Todd
0
Dragoljub
Top achievements
Rank 1
answered on 22 Jan 2009, 10:40 AM
Region still does not work - no quotes?
0
Todd Anglin
Top achievements
Rank 2
answered on 22 Jan 2009, 02:54 PM
@dragoljub- Indeed, I can replicate the problem. And a quick check of the NRefactory engine suggests that this conversion should work. I will take a look at our implementation of NRefactory and update the code base to handle these conversions properly. I'll update this thread when the conversions have been deployed.

Thanks for re-raising the issue!

-Todd
Tags
Code Converter
Asked by
dhlennon
Top achievements
Rank 1
Answers by
Todd Anglin
Top achievements
Rank 2
Chandan
Top achievements
Rank 1
Dragoljub
Top achievements
Rank 1
Share this question
or