Chapter 5. Operators

Information is not extremely useful if you can't do anything with it. Operators perform actions on values, producing a result. For example, the addition operator (+) takes two numbers and adds them together. An operator acts on values that are called the operands. An operator that acts on one operand is called a unary operator, while an operator that acts on two operands is called a binary operator. (A binary operator is called “binary” because it operates on two values.) This chapter discusses the operators defined in Visual Basic .NET.

Precedence

All operators in Visual Basic .NET have a certain precedence that determines in what order operations are performed if an expression has more than one operator. An operator with higher ...

Get Visual Basic .NET Programming Language, The 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.