<?xml version="1.0" encoding="UTF-8"?>
<user>
  <id type="integer">484414</id>
  <url>http://uservoice.com/users/484414-stixoffire</url>
  <avatar_url>http://www.gravatar.com/avatar/ff1f7796781f4024fa0043eeb96a3918?default=http://uservoice.com/images/icons/default-avatar.jpg</avatar_url>
  <display_name>Ken</display_name>
  <name deprecated="true">Ken</name>
  <username deprecated="true">stixoffire</username>
  <activity_score type="integer">51</activity_score>
  <idea_score type="integer">2</idea_score>
  <supported_suggestions type="array" deprecated="false">
<suggestion>
  <id type="integer">22004</id>
  <url>http://feedback.developerfusion.com/pages/5477-code-converter/suggestions/22004-code-converters-add-support-for-indexers</url>
  <title>Code converters: Add support for indexers</title>
  <abstract>[from

Here is one suggestion/bug report. VB to C# converter neglects/ignores



private void
    string[] someValues = new string[] { &quot;A&quot;, &quot;B&quot;...</abstract>
  <text>[from #kdmitry]

Here is one suggestion/bug report. VB to C# converter neglects/ignores indexers

Example:

C#:

private void IndexerUsageExample()
{
    string[] someValues = new string[] { &quot;A&quot;, &quot;B&quot; };
    string value = someValues[1];
}

Covert to VB: (so far so good)
Private Sub IndexerUsageExample()
    Dim someValues() As String = New String() {&quot;A&quot;, &quot;B&quot;}
    Dim value As String = someValues(1)
End Sub

Convert back to C#  (Ouch!)

private void IndexerUsageExample()
{
    string[] someValues = new string[] { &quot;A&quot;, &quot;B&quot; };
    string value = someValues(1);
}
The bug is in the usage of the indexer. C# uses square brackets for indexers and converter didn't &quot;detect&quot; that it is an indexer. I am not sure how easy it is to detect, but it would be awesome to actually have that functionality. I can say at least for myself that I do use this type of syntax very often.  </text>
  <closed_at nil="true"></closed_at>
  <vote_count type="integer">3</vote_count>
  <comments_count type="integer">1</comments_count>
  <status>under review</status>
  <forum>
    <id type="integer">5477</id>
    <name>Code Converter</name>
    <key deprecated="true">code_converter</key>
  </forum>
  <response>
    <text>Thanks for the suggestion! Due to the way the converter works (by purely analyzing the syntax, rather than the meaning of the code), there's no easy way to detect whether something is a function call, or an array indexer. Potentially there would be a way to make a &quot;best guess&quot;, but I'm afraid this one probably won't appear for a while yet.</text>
    <abstract>Thanks for the suggestion! Due to the way the converter works (by purely analyzing the syntax, rather than the meaning of the code), there's no easy...</abstract>
    <user>
      <id type="integer">30906</id>
      <name>james.crowley</name>
      <display_name>james.crowley</display_name>
    </user>
  </response>
  <created_by>
    <supporter>
      <user>
        <id type="integer">30906</id>
        <display_name>james.crowley</display_name>
        <name deprecated="true">james.crowley</name>
        <username deprecated="true">james.crowley</username>
      </user>
    </supporter>
  </created_by>
  <created_at type="datetime">2008-09-02T09:05:47Z</created_at>
  <updated_at type="datetime">2008-11-03T15:48:12Z</updated_at>
  <page deprecated="true">
    <key>code_converter</key>
  </page>
</suggestion>
<suggestion>
  <id type="integer">155099</id>
  <url>http://feedback.developerfusion.com/pages/5477-code-converter/suggestions/155099-suggest-code-to-make-event-handlers-work-vb-net-c-</url>
  <title>Suggest code to make event handlers work (VB.Net -&gt; C#)</title>
  <abstract>The converter could suggest the code needed to bind an event


Private Sub SomeObject_SomeEvent(Arguments as Object) Handles

The following code could be...</abstract>
  <text>The converter could suggest the code needed to bind an event handler.

Example:

Private Sub SomeObject_SomeEvent(Arguments as Object) Handles SomeObject.SomeEvent

The following code could be suggested (in a comment):
SomeObject.SomeEvent += SomeObject_SomeEvent;
</text>
  <closed_at nil="true"></closed_at>
  <vote_count type="integer">11</vote_count>
  <comments_count type="integer">1</comments_count>
  <status nil="true"></status>
  <forum>
    <id type="integer">5477</id>
    <name>Code Converter</name>
    <key deprecated="true">code_converter</key>
  </forum>
  <response nil="true"></response>
  <created_by>
    <supporter>
      <user>
        <id type="integer">350844</id>
        <display_name>UFO</display_name>
        <name deprecated="true">UFO</name>
        <username deprecated="true"></username>
      </user>
    </supporter>
  </created_by>
  <created_at type="datetime">2009-04-04T17:05:29Z</created_at>
  <updated_at type="datetime">2009-04-04T17:05:29Z</updated_at>
  <page deprecated="true">
    <key>code_converter</key>
  </page>
</suggestion>
<suggestion>
  <id type="integer">192604</id>
  <url>http://feedback.developerfusion.com/pages/5477-code-converter/suggestions/192604-optional-method-parameters-not-converted-from-vb-to-c-</url>
  <title>optional method parameters not converted from VB to C#</title>
  <abstract>Methods with Optional Parameters, 
Private Sub ThisMethod(Optional byRef strVal as String = &quot;me&quot;) 

Are not converted . creating overloaded methods might be a way to go, just add into the base...</abstract>
  <text>Methods with Optional Parameters, 
Private Sub ThisMethod(Optional byRef strVal as String = &quot;me&quot;) 

Are not converted . creating overloaded methods might be a way to go, just add into the base method the additional variables assigned with default values. 
see below example.
//method assigns argument to default inside the class
private void ThisMethod() {
string strVal = &quot;me&quot;;
}

// method has variable as argument
private void ThisMethod(string strVal) {
 
}

</text>
  <closed_at nil="true"></closed_at>
  <vote_count type="integer">5</vote_count>
  <comments_count type="integer">0</comments_count>
  <status nil="true"></status>
  <forum>
    <id type="integer">5477</id>
    <name>Code Converter</name>
    <key deprecated="true">code_converter</key>
  </forum>
  <response nil="true"></response>
  <created_by>
    <supporter>
      <user>
        <id type="integer">484414</id>
        <display_name>Ken</display_name>
        <name deprecated="true">Ken</name>
        <username deprecated="true">stixoffire</username>
      </user>
    </supporter>
  </created_by>
  <created_at type="datetime">2009-05-18T03:15:31Z</created_at>
  <updated_at type="datetime">2009-05-18T03:15:31Z</updated_at>
  <page deprecated="true">
    <key>code_converter</key>
  </page>
</suggestion>
<suggestion>
  <id type="integer">192975</id>
  <url>http://feedback.developerfusion.com/pages/2418-general/suggestions/192975-organize-forums-by-type-code-converter-website</url>
  <title>Organize Forums by Type Code Converter, Website</title>
  <abstract>The forums and Feedback should be organized more clearly by type - if it is for the tools section or for the website. Also get rid of those people peddling products on the forums..it is tacky, rude...</abstract>
  <text>The forums and Feedback should be organized more clearly by type - if it is for the tools section or for the website. Also get rid of those people peddling products on the forums..it is tacky, rude and ethically tasteless.</text>
  <closed_at nil="true"></closed_at>
  <vote_count type="integer">3</vote_count>
  <comments_count type="integer">0</comments_count>
  <status nil="true"></status>
  <forum>
    <id type="integer">2418</id>
    <name>General</name>
    <key deprecated="true">general</key>
  </forum>
  <response nil="true"></response>
  <created_by>
    <supporter>
      <user>
        <id type="integer">484414</id>
        <display_name>Ken</display_name>
        <name deprecated="true">Ken</name>
        <username deprecated="true">stixoffire</username>
      </user>
    </supporter>
  </created_by>
  <created_at type="datetime">2009-05-18T15:34:00Z</created_at>
  <updated_at type="datetime">2009-05-18T15:34:00Z</updated_at>
  <page deprecated="true">
    <key>general</key>
  </page>
</suggestion>
  </supported_suggestions>
  <created_at type="datetime">2009-05-18T03:05:09Z</created_at>
  <updated_at type="datetime">2009-05-18T15:21:08Z</updated_at>
</user>
