Moving code to VB.Net
I recently had to change some code I’ve written to
VB.Net from C#, and it was a painful process. Not because the conversion was difficult,
or because I had to make changes to my code, but because I couldn’t find
an automated tool to translate C# 2.0 code to VB.Net 2.0 (including anonymous
methods, generics, etc).
Luckily, the code consisted of 2 files with less than 10
methods overall, so I was able to convert it manually. The bad parts were that
there doesn’t seem to be a way to do anonymous method in VB.Net (at least
not something instantly googlable), and it took me a while to get the grips
with the generics syntax. I can read VB.Net code, of course, but the verbosity
of it is killing me when I’m writing it. And the mental effort of
translating VB.Net code to something that I can understand is annoying beyond short
code samples.
Comments
Comment preview