FAQ - VB to C sharp net guide

Question
Possible mistaken empty statement
Answer

When it comes to it, programming is a series of conventions. Different languages have different conventions. If you are used to one set, it will take time for the eye and brain to become accustomed to seeing conventions which are incorrect in the new language.

 

Yes, I know that the only difference between C# and VB net is a ; at the end of each line... here are some more that a programmer with a trained VB eye may find hard to spot.

 

Possible mistaken empty statement: error

 

This error message is raised when there is the following statement:

 

Example:

if ( some condition or other) ;

 

C# does not use a final ; on a branching statement (if etc)

 

Other conventions that may trap the experienced vb programmer

 

If you found this information useful, please share it!


This FAQ was last updated on 21 July 2011

Contact Information

To find out more about Ava solutions you can contact us in a number of ways:
Follow Us...