阅读背景:

在.NET中,为什么常量在编译时而不是在JIT时进行评估?

来源:互联网 

I got a bit of a surprise today when I changed the value of a publicly-visible constant in a static class and then replaced an old copy of the assembly with the newly-compiled version. The surprise was that the existing program that referenced the assembly didn't pick up the new value of the constant. That is, I didn't re-compile the executable but rather just replaced that one assembly.I got a bit of a surprise today when I changed




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: