New Features

Compared to the dizzying array of features necessitated by the move to .NET, the list of other new features in Visual Basic .NET is relatively modest. In general, we focused on addressing a few complaints about missing features and useful semantics. Among the things added that fall into this category are the following:

  • Short-circuiting Boolean operators AndAlso and OrElse. Because the current And and Or operators cannot short-circuit (because they are used as binary operators as well as logical operators), we added two new logical operators that will short-circuit. Although it was possible to work around their absence, short-circuiting logical operators quickly became indispensable in practice.

  • Initializers. Initializers on locals ...

Get Programming in the .NET Environment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.