1. Original Entry + Comments2. Write a Comment3. Preview Comment
New comments for this entry are disabled.

April 01, 2008  |  Can you convert ... ?  |  3426 hit(s)

Twice today I've gotten requests via the blog to convert code in old (old, old) blog entries -- one request to convert VB to C#, another request for C# to VB. Weird, huh? Two requests, both today.

Dunno, what do you think? Should I do the conversions and post the code, so the (probably) newbies who need it can find what they need? Should I point out that I already wrote and posted the code once, I don't want to do it twice?

What would you do?

InfinitiesLoop   01 Apr 08 - 5:52 PM

I've had a few C#->VB Requests. I just don't have the patience to actually do it -- the C# code is nearly the same, so unless my code is meant to be taken as-is and compiled I don't see the point. Usually the code snippets are just for communication. Even if you've never seen C syntax before you should get the gist of it.

Phil Weber   01 Apr 08 - 9:49 PM

I would point them to the many free online conversion tools: http://www.google.com/search?q=convert+c%23+vb

Rik Hemsley   02 Apr 08 - 12:15 AM

I'd say converting between almost-identical languages should be left as an exercise for the reader - a learning experience, if you will.

JMP   02 Apr 08 - 9:11 AM

Send them to:




But, I hate to say this, people really should be able to read either, at a minimum. Most .NET books/blogs use a single language, and you lose the utility of the blook/blog if you can't at least read and translate in your head.

Eric Lippert   02 Apr 08 - 3:55 PM

That's easy.



mike   04 Apr 08 - 8:30 AM

Thank you all for this excellent advice -- at least one party has pronounced himself satisfied with pointers to conversion utilities.

Altho, Eric, I must note that didn't implement your particular, um, suggestion. :-)