C# static readonly 与 const 的区别

static readonly 与 const 的区别:

const 表达式的值是在编译时形成的;

static readonly 表达式的值直到程序运行时才形成;

posted @ 2012-10-15 14:33  想飞的水  阅读(98)  评论(0编辑  收藏  举报