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

Request.QueryString VB to C# bug

1 Answer 53 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.
temp
Top achievements
Rank 1
temp asked on 15 Oct 2010, 02:21 PM
Request.QueryString("id") in VB is getting converted to

Request.QueryString("id") in C#. It should've been -

Request.QueryString["id"]


1 Answer, 1 is accepted

Sort by
0
Todd Anglin
Top achievements
Rank 2
answered on 25 Oct 2010, 11:22 PM
This is actually a limit of the underlying NRefactory engine that powers the Code Converter. I suggest you request this support on the SharpDevelop forums: http://community.sharpdevelop.net/tags/nrefactory/default.aspx. You can further test the NRefactory engine using the simple converter provided by the core team: http://codeconverter.sharpdevelop.net/SnippetConverter.aspx.

We actually do a little "enhancing" of the NRefactory conversions to look for special cases like this (changing parenthesis to brackets). We catch it is some cases, such as Session("key"), but our support is not exhaustive. We'll try to cover more scenarios while we wait on full support in the engine.

Hope that helps.

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