<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issues with Converting C#.NET code into VB.Net code in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591341#M68309</link>
    <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
 try out this. this will help u.&lt;BR /&gt;
&lt;BR /&gt;
http://www.developerfusion.com/tools/convert/csharp-to-vb/&lt;BR /&gt;
&lt;BR /&gt;
With Regards&lt;BR /&gt;
divya</description>
    <pubDate>Thu, 19 Nov 2009 04:51:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-19T04:51:46Z</dc:date>
    <item>
      <title>Issues with Converting C#.NET code into VB.Net code</title>
      <link>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591339#M68307</link>
      <description>&lt;P&gt;&lt;BR /&gt;
Feel free to add on for other issues with translating C# code as well as approaches and solutions so as many solutions as possible appear in one place.&lt;BR /&gt;
-------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
My translator (.Net Reflector 5.0) was unable to convert the C# "this" statement into something VB.Net understood.&lt;BR /&gt;
&lt;BR /&gt;
For example the C# statement:&lt;BR /&gt;
-     this.ids = new ObjectIdCollection();&lt;BR /&gt;
&lt;BR /&gt;
Got translated into:&lt;BR /&gt;
-     Dim CS$1$0000 As ObjectIdCollection&lt;BR /&gt;
&lt;BR /&gt;
Any ideas how to properly translate this to VB.Net.... this is kind of like Abbot and Kostello's "Who's on First"....&lt;BR /&gt;
&lt;BR /&gt;
This came from code Tony Tanzillo linked in the "Working With Nested Blocks" thread on Nov 12 and repeated below:&lt;BR /&gt;
&lt;A href="http://www.caddzone.com/BlockExplodeHelper.cs" target="_newWindow" class="jive-link-external"&gt;http://www.caddzone.com/BlockExplodeHelper.cs&lt;/A&gt;&lt;BR /&gt;
&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2009 17:25:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591339#M68307</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-18T17:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Converting C#.NET code into VB.Net code</title>
      <link>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591340#M68308</link>
      <description>That looks like a bad translation.&lt;BR /&gt;
&lt;BR /&gt;
It looks like the variable 'ids' is declared as a variable in the Class. The keyword 'this' indicates it is a member of the current Class.  A literal translation into VB.NET would look like:&lt;BR /&gt;
&lt;BR /&gt;
{code}&lt;BR /&gt;
Me.ids = new ObjectIDCollection()&lt;BR /&gt;
{code} &lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;BR /&gt;
&lt;BR /&gt;
Jerry</description>
      <pubDate>Wed, 18 Nov 2009 20:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591340#M68308</guid>
      <dc:creator>jerrywinters</dc:creator>
      <dc:date>2009-11-18T20:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Converting C#.NET code into VB.Net code</title>
      <link>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591341#M68309</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
 try out this. this will help u.&lt;BR /&gt;
&lt;BR /&gt;
http://www.developerfusion.com/tools/convert/csharp-to-vb/&lt;BR /&gt;
&lt;BR /&gt;
With Regards&lt;BR /&gt;
divya</description>
      <pubDate>Thu, 19 Nov 2009 04:51:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591341#M68309</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-19T04:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Converting C#.NET code into VB.Net code</title>
      <link>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591342#M68310</link>
      <description>Thanks Divya and Jerry,&lt;BR /&gt;
&lt;BR /&gt;
The online code converter converted the C# code to exactly what Jerry noted.&lt;BR /&gt;
&lt;BR /&gt;
Does Reflector not support the 3.5 .NET framework?  (See Attached Image).  Or is there some configuration thing I missed?...&lt;BR /&gt;
&lt;BR /&gt;
I thought Reflector is the converter of choice?  If not what is?  Tony, what are you using?

Edited by: HEnnulat on Nov 19, 2009 10:15 AM</description>
      <pubDate>Thu, 19 Nov 2009 15:58:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591342#M68310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-19T15:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Converting C#.NET code into VB.Net code</title>
      <link>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591343#M68311</link>
      <description>Reflector doesn't always do a true translation of code.&lt;BR /&gt;
&lt;BR /&gt;
I would probably try one of the online translators that are&lt;BR /&gt;
available, searching the newsgroup should turn up a few&lt;BR /&gt;
links to them if no one else can refer you to one.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;HENNULAT&gt; wrote in message news:6291194@discussion.autodesk.com...&lt;BR /&gt;
Feel free to add on for other issues with translating C# code as well as &lt;BR /&gt;
approaches and solutions so as many solutions as possible appear in one &lt;BR /&gt;
place. ------------------------------------------------------------------------------------------------------------------------- &lt;BR /&gt;
My translator (.Net Reflector 5.0) was unable to convert the C# "this" &lt;BR /&gt;
statement into something VB.Net understood. For example the C# statement: - &lt;BR /&gt;
this.ids = new ObjectIdCollection(); Got translated into: - Dim CS$1$0000 As &lt;BR /&gt;
ObjectIdCollection Any ideas how to properly translate this to VB.Net.... &lt;BR /&gt;
this is kind of like Abbot and Kostello's "Who's on First".... This came &lt;BR /&gt;
from code Tony Tanzillo linked in the "Working With Nested Blocks" thread on &lt;BR /&gt;
Nov 12 and repeated below: http://www.caddzone.com/BlockExplodeHelper.cs&lt;/HENNULAT&gt;</description>
      <pubDate>Thu, 19 Nov 2009 20:58:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/issues-with-converting-c-net-code-into-vb-net-code/m-p/2591343#M68311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-19T20:58:29Z</dc:date>
    </item>
  </channel>
</rss>

