Operators

To review, operators are the special symbols, such as +, /, Mod, and AndOr, that allow you to perform arithmetic, bitwise, comparison, concatenation, and logical operations in statements. Each operator takes a prescribed number and type of operands, or data.

Several new operators have been added to Visual Basic .NET. Some of these operators are designed to support bitwise logic and others have been defined to provide an abbreviated form of standard arithmetic. Several new assignment operators have been borrowed from C++. Look over Table 2.8 for a review of VB .NET operators.

Table 2.8. Visual Basic .NET Operators
Action Symbol Description
Binary Operands
Exponentiation ^ Written x^y; raises x to power y
Subtraction - x-y; performs subtraction ...

Get Visual Basic® .NET Unleashed 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.