C#: constant and readonly

readonly fields are similar to constant fields in that they can’t be modified after initialization. The biggest difference between the two is when they’re initialized: Constants are
initialized during compilation, and readonly fields are initialized during runtime.
posted @ 2010-02-23 10:11  能巴  阅读(325)  评论(0)    收藏  举报