【转】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)
浙公网安备 33010602011771号