What's New in Visual Basic .NET 2003


Visual Basic .NET 2003 has added functionality that simplifies bit manipulation and loop variable declaration.
Bit Shift Operators
Visual Basic .NET now supports arithmetic left and right shift operations on integral data types (Byte, Short, Integer, and Long). Arithmetic shifts are not circular, which means the bits shifted off one end of the result are not reintroduced at the other end. The corresponding assignment operators are provided as well. For details, see Bit Shift Operators and Assignment Operators.

Loop Variable Declaration
Visual Basic .NET now allows you to declare a loop variable as part of a For or For Each loop. You can include an As clause for the variable in the For or For Each statement, provided no variable of that name has been declared outside the loop. The scope of a loop variable declared in this manner is the loop itself. For details, see For...Next Statements and For Each...Next Statements.