To Documents

VB.Net Operator Precedence

 

Prededence Operator Meaning Associativity
15 ( ) Expression Grouping1 Inside-to-outside
14 . Member evaluation Left-to-right
13 ^ Exponentiation Left-to-right
12 - Unary Minus Left-to-right
12 + Unary Plus Left-to-right
11 * Multiplication Left-to-right
11 / Division Left-to-right
10 \ Integer Division Left-to-right
  9 Mod Remainder Left-to-right
  8 + Addition Left-to-right
  8 - Subtraction Left-to-right
  8 + String Concatenation Left-to-right
  7 & String Concatenation Left-to-right
  6 << Bit Shift Left Left-to-right
  6 >> Bit Shift Right Left-to-right
  5 = Equals Left-to-right
  5 <> Not Equals Left-to-right
  5 < Less Than Left-to-right
  5 <= Less Than Or Equals Left-to-right
  5 > Greater Than Left-to-right
  5 >= Greater Than Or Equals Left-to-right
  5 Like String Pattern Matching Left-to-right
  5 Is Reference Equality Left-to-right
  5 TypeOf..Is Check Type Left-to-right
  4 Not Negation Left-to-right
  3 And Complete Evaluation And2 Left-to-right
  3 AndAlso Short Circuit And2 Left-to-right
  2 Or Complete Evaluation Or2 Left-to-right
  2 OrElse Short Circuit Or2 Left-to-right
  2 XOr Exclusive Or2 Left-to-right
  1 = Assignment None3
 

1Parentheses are also used for subroutine and function evaluation and for array access.

2And, Or, and XOr can be either logical operators of Boolean or bitwise operators on Integer.

3Only one assignment operator is allowed per line.
  Other assignment operators, new with VB.Net, are +=, -=, *=, /=, \=, ^=, and &=.