Re: Convert from C# into VB



David,

what is your opinion on the SharpDevelop built-in converters ?




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"David Anton" <DavidAnton@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9389C0D1-9780-47E3-9C9C-7FD4DF634DC4@xxxxxxxxxxxxxxxx
For developerfusion, try some generics or operator overloading... it'll trip
it up every time.

The on-line converters only handle the most obvious syntax conversions.
You're in for a surprise if you use the results in your production code.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter


"Karl Seguin [MVP]" wrote:

Well:
http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx

gave the right conversion. you simply needed to add the brackets {}

Karl

--
http://www.openmymind.net/



"David Anton" <DavidAnton@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:96CF39FF-C137-42A4-914A-9B9A3C50AE59@xxxxxxxxxxxxxxxx
I think Carlos' converter is the best on-line converter, but there are
always
going to be many issues not handled well by any of the on-line converters.
See the following for a partial list:
http://www.tangiblesoftwaresolutions.com/Articles/Language%20Features%20not%20Handled%20by%20On-Line%20Converters.htm
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter


"Juan T. Llibre" wrote:

I'll notify Carlos...



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"David Anton" <DavidAnton@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:56E737EE-95C0-4710-8311-918AA8A56EDB@xxxxxxxxxxxxxxxx
Poornimab gave the correct translation (same as our converter).
The equivalent to the C# "x is y" in VB is "TypeOf x Is y", not "x =
y".
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter


"Juan T. Llibre" wrote:

David, when I used it, it returned :


If (c = System.Web.UI.HtmlControls.HtmlForm) Then
End If


Is there anything else your translator returns which Carlos' doesn't
return ?




Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"David Anton" <DavidAnton@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3D03FEA5-B29F-410C-88D8-66F89B140E52@xxxxxxxxxxxxxxxx
That on-line converter is usually pretty good, but it fails to
convert the
original poster's sample.

Our C# to VB converter (Instant VB) will convert what the on-line
converters
can't.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter
Instant C++: VB to C++ converter


"Juan T. Llibre" wrote:

Poornimab already gave you the answer, but the next time you need
to
translate from C# to VB.NET, you might want to save yourself some
time
and use this nifty online translator :

http://www.carlosag.net/Tools/CodeTranslator/default.aspx



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"John Smith" <john.smith@xxxxxxxxxxxxx> wrote in message
news:PyPlg.3850$oj5.1287266@xxxxxxxxxxxxxxxx

Can someone convert from C# into VB this line for me:

if (c is System.Web.UI.HtmlControls.HtmlForm)

















.



Relevant Pages

  • Re: Converting ASP.NET Page from VB to C#
    ... Great links Juan - I've been looking for some good converters! ... one I've used so far is the demo of Instant C#: VB to C# Converter from ... Stick your code into them (just the code, not the HTML) ... Juan T. Llibre, asp.net MVP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Convert from C# into VB
    ... Juan T. Llibre, asp.net MVP ... asp.net faq: http://asp.net.do/faq/ ... Instant VB: C# to VB converter ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Convert from C# into VB
    ... David Anton ... Instant VB: C# to VB converter ... Juan T. Llibre, asp.net MVP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Convert from C# into VB
    ... Poornimab gave the correct translation (same as our converter). ... Is there anything else your translator returns which Carlos' doesn't return? ... Juan T. Llibre, asp.net MVP ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Mail sent through IIS virtual SMTP server not arriving
    ... Juan T. Llibre, asp.net MVP ... asp.net faq: http://asp.net.do/faq/ ... does not respond to a connection attempt from my smtp virtual server. ...
    (microsoft.public.dotnet.framework.aspnet)