我曾尝试将c#代码转换为vb.net代码。
c#代码为:
int m = 300;
byte h = (byte)m;
我的vb代码是:
dim m as integer = 300
dim h as byte = cbyte(m)
错误是:
Message =算术运算导致溢出。
期望值为:
h value is 44 byte.
我曾尝试将c#代码转换为vb.net代码。
c#代码为:
int m = 300;
byte h = (byte)m;
我的vb代码是:
dim m as integer = 300
dim h as byte = cbyte(m)
错误是:
Message =算术运算导致溢出。
期望值为:
h value is 44 byte.