How to convert from C# To VB.NET

vb.net , jav , csharp Nigeria
  • 12 years ago
    I understand C# a little bit but i undastand JAVA and VB.NET well. Now the problem is that i av come across a couple of C# articles and i av bin able to convert them to vb.net and java. But there is keyword in C# that i don't know its function or how to convert it> For example: public void method(){ using(Doger rr =new Doger){ //implementation } }
  • 12 years ago
    the using keyword is used for a variety of functions in c# but in the case as above, it signifies that the class **Doger** has implemented the interface IDisposable and its dispose method is called internally while also internally performing exception handling. it would otherwise translate to: try { Doger rr = new Doger(); //implementation } catch { throw new Exception(); } finally { rr.Dispose(); }
  • 11 years ago

    The using keyword is useful especially when you need to use the object of a class on the fly such that the handle is disposed immediatelly after the code block without ever havin to keep a refrembe to the object. However getting a good book would really help.

  • 11 years ago

    The using keyword is useful especially when you need to use the object of a class on the fly such that the handle is disposed immediatelly after the code block without ever havin to keep a refrembe to the object. However getting a good book would really help.

  • 11 years ago

    use http://converter.telerik.com/ - it is free and works great.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” - Martin Fowler