摘要: 1、const常量为静态常量;readonly常量为动态常量;2、const常量在编译时值被确定,在运行时值为编译时值;readonly常量,在编译时为类型的默认值(非指定的默认值),在运行时值被确定;3、const常量无内存消耗;readonly存常量有内存消耗;4、const常量为引用类型,值为... 阅读全文
posted @ 2014-10-29 17:41 r_1203 阅读(161) 评论(0) 推荐(0) 编辑