作者tomex (tomex_ou)
看板C_Sharp
标题Re: C#的加减乘除
时间Fri Oct 15 07:32:05 2004
※ 引述《ithinkurdumb (YANKEES RULE ALL!)》之铭言:
: That really helps, thanks a lot.
: 另外请教一个问题,
: 就是如果使用不少Convert.ToXXXX (都是在Byte, Int16, Int32之间转换),
: 对於整体的performance的影响大吗?
不会,若是implict convert,可以直接用(new_type)运算子来写
比较方便,但前提是unboxing前type是一致的。
: 还有ANSI C的int好像是16-bit? 2^16 = 65,536...
Yes, you are right.
--
You're recommended to vist C_Sharp in PTT.
We are the C#, resistance is futile.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.119.183.211