C# >> VB.NET 
Author Message
 C# >> VB.NET

Hi,

How would one go about converting C# code to VB.NET code?



Sun, 30 Nov 2003 18:16:38 GMT  
 C# >> VB.NET
Hi,

How would one go about converting C# code to VB.NET code?



Sun, 30 Nov 2003 18:16:38 GMT  
 C# >> VB.NET
Why????  I can see it is more so the other way around.


Quote:
> Hi,

> How would one go about converting C# code to VB.NET code?



Sun, 30 Nov 2003 22:39:55 GMT  
 C# >> VB.NET
Well, first, you have to learn VB.NET :)
Most C# language features have their equivalence in VB.NET


Quote:
> Hi,

> How would one go about converting C# code to VB.NET code?



Mon, 01 Dec 2003 00:18:25 GMT  
 C# >> VB.NET
No.

VB < C#



Mon, 01 Dec 2003 00:23:47 GMT  
 C# >> VB.NET


Quote:
> No.

> VB < C#

Care to elaborate on that?

--
Patrick Steele

Lead Software Architect
Image Process Design



Mon, 01 Dec 2003 00:44:19 GMT  
 C# >> VB.NET
(VB<C#)=false
Since both of them are Turing-complete, you can always create a
cross-compiler between VB and C#. In fact, you could do
VB6->VB.NET and vice-versa. Guess which one would be more difficult.
It would be very easy to make a c#->VB.NET compiler indeed ( probably, even
easier than a c#->IL compiler).
Try to translate a program yourself. It's a trivial task, you don't even
have to use your mind's stack.
Oops- just an issue: unsafe code won't be that easy( but feasible anyway).


Mon, 01 Dec 2003 01:02:20 GMT  
 C# >> VB.NET
Please go away. Thanks


Quote:
> No.

> VB < C#



Mon, 01 Dec 2003 12:30:09 GMT  
 C# >> VB.NET
Create a program to do it. You can fairly easily run through C# and do this
manually.

Public Class MyClass {

Quote:
}

=

Public Class MyClass
End Class

Most of the constructs are similar. You also have to untangle assignments
 int intMyInt = 1 becomes Dim intMyInt As Integer = 1, etc.). If you can
find a decompiler for VB.NET (currently one for C#) you can take C# to IL
and decompile.

Now, for the big question: Why? You can inherit the C# classes in VB, so why
rewrite them? Unless this is purely a learning exercise, I see little use in
this.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************

Quote:
> Hi,

> How would one go about converting C# code to VB.NET code?



Mon, 01 Dec 2003 23:51:21 GMT  
 
 [ 9 post ] 

 Relevant Pages 

1. using The Shell Command >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

2. <<<<<<<<ComboBox>>>>>>>>>>>>

3. >>>>>>While Not rst.EOF

4. C# <-> VB.Net Converter

5. PSUDOCODE HELP >>>>>>>>>>>

6. >>>>> Serial Communications

7. VB5 >>>>> Academic Version

8. <<<<HELP- OLE container Control>>>>>>>>>

9. Convert VB.Net to C#, convert C# to VB.Net

10. MS Access(GIF)->VB->NET??

11. !!! URGENT HELP REQUIRED !!!>>>>>>>>

12. >>= bitwise operations >>

 

 
Powered by phpBB® Forum Software