阅读背景:

C#如何知道何时运行静态构造函数?

来源:互联网 

I don't believe the generated code would check if the class has been initialized everytime it access a static member (which includes functions). I believe checking every access would be inefficient. I looked at §17.11 in ECMA 334 and it saysI don't believe the generated code would check




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

分享到: