摘要:
假设我有一个object类型的变量o,需要转化成string类型的变量s。那么请问下列方式当中的那一个方案更加有效率:1、 s = (string) o;2、 s = o.ToString();相关提示:1、(string) 强制转换对应一句IL语句castclass,在IL中大概表现为: L_0019: ldloc.0 L_001a: castclass string ... 阅读全文
posted @ 2004-10-27 16:30
Sumtec
阅读(1232)
评论(5)
推荐(0)

浙公网安备 33010602011771号