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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access