翔如菲菲

其实天很蓝,阴云总会散;其实海不宽,此岸连彼岸.

导航

2009年3月26日 #

【转】readonly vs. const [C#]

摘要: readonly vs. const [C#] Updated on Friday, October 29, 2004 Written by Allen Lee Features: readonly和const都是用来标识常量的[1]。 const可用于修饰class的field或者一个局部变量(local variable);而readonly仅仅用于修饰class的field。 cons... 阅读全文

posted @ 2009-03-26 18:30 翔如飞飞 阅读(174) 评论(0) 推荐(0)