Expressions and Operators

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


Asp. Net. By Example
ASP.NET by Example
ISBN: 0789725622
EAN: 2147483647
Year: 2001
Pages: 154

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net