阅读背景:

.NET JIT编译器是否为具有不同枚举的泛型参数化生成不同的代码?

来源:互联网 

If I write (or use) a generic class, e.g. List, and parameterize it with two different enumerated types, will I get two copies of code JITted? Given the following articles that discuss the how the JITter generates one copy for reference types, and one copy for each value type, I think this boils down to, "Is each specific enum considered a different value type for the purpose of JITting?"If I write (or use) a generic class, e.g. List,




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

分享到: