ASP.NET by Example

I l @ ve RuBoard

Table C.2 outlines the operators found in VB.NET.

Table C.2. Operator Types in VB.NET

Category Operators
Primary All nonoperator expressions.
Exponentiation ^
Unary Negation + , -
Multiplicative * , /
Integer Division \
Modulus %
Additive + -
Concatenation &
Relational = , < , > , <= , >= , Like , Is , TypeOf
Conditional NOT Not
Conditional AND And , AndAlso
Conditional OR Or , OrElse
Conditional XOR XOr

Expressions are evaluated in order of operator precedence. This precedence is based upon the associativity of the operators:

  • Except for assignment operators, all binary operators are performed from left to right.

  • Assignment operators and the conditional operator are evaluated from right to left.

  • Precedence may be controlled through the use of parentheses.

I l @ ve RuBoard

Категории