FAQ - VB to C sharp net guide

Question
The left-hand side of an assignment must be a variable, property or indexer
Answer

When programming is a series of conventions. Un surprisingly different languages use different conventions. If you are know one set, it will takes time to see erors which conform to the conventions your eye and brain have become accustomed to seeing

 

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.

 

The left-hand side of an assignment must be a variable, property or indexer

 

Example:

if (String.Compare( value, anotherValue,true) = 0 )

 

When comparing two variables use == not =

 

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...