其表示方式的不同,內容來源是這篇文章:
VB6 Operators to C#
VB 6 Operators | C# |
^ | Math.Pow |
* | * |
/ | / |
\ | / |
Mod | % |
+ | + |
- | - |
& or (+) | + |
< | < |
<= | <= |
> | > |
>= | >= |
<> | <> |
= | == |
Is | is |
And | && (or &) |
Not | ! (or ~) |
Or | || (or |) |
Xor | ^ |
A Imp B | (~ A) | B |
A Eqv B | ~ ( A ^ B) |
TypeOf ... IS ... | is |
Like | Microsoft.VisualBasic.CompilerServices.StringType.StrLike |
AddressOf | (UNSUPPORT) |
Reference:
沒有留言:
張貼留言