Ratakan

Informations :

Operator Precedence in VB.NET


What is operator precedence in VB.NET?

Explanation

Visual Basic.net 2008 Tutorial:

Operator Precedence is the order in which the operators in the expression are evaluated. The Arithmetic operators have the highest precedence followed by concatenation, comparison, logical, bitwise operator. All the comparison operators in Visual Basic.net 2008 have equal precedence so that they are evaluated from left to right.
OperatorsDescription
^Exponentiation
+,-Unary identity and negation
*, /Multiplication and floating-point division
Integer division
ModModulus arithmetic
+,-, +Addition, Subtraction, String concatenation
&String concatenation
<<,>>Arithmetic bit shift
=, <>, <, <=, >, >=, Is, IsNot, Like, TypeOf...IsAll Comparison, Logical, Bitwise Operators.
NotNegation
And,AndAlsoConjuction
Or,OrElseInclusive disjunction
XorExclusive disjunction

No comments