vb.net 与 c# 运算符区别

vb.net vs c# 详细的Operators运算符区别

vb.net
=====================
Comparison
= < > <= >= <> Arithmetic
+ - * /
Mod
\ (integer division)
^ (raise to a power) Assignment
= += -= *= /= \= ^= <<= >>= &= Bitwise
And Or Xor Not << >> Logical
AndAlso OrElse And Or Xor Not Note: AndAlso and OrElse perform short-circuit logical evaluations String Concatenation
& c#
=====================
Comparison
== < > <= >= != Arithmetic
+ - * /
% (mod)
/ (integer division if both operands are ints)
Math.Pow(x, y) Assignment
= += -= *= /= %= &= |= ^= <<= >>= ++ -- Bitwise
& | ^ ~ << >> Logical
&& || & | ^ ! Note: && and || perform short-circuit logical evaluations String Concatenation
+
上一篇:Linux学习笔记之初级篇


下一篇:《深入Java虚拟机学习笔记》- 第1章 Java体系结构