本文介绍了如何仿制药获得由JIT编译器编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道泛型编译通过JIT(如一切),而相比之下,当你编译code生成模板。结果
问题是,新的通用类型可以在运行时通过使用反射来创建。结果
这当然会影响到通用的约束。其中已通过语义分析程序。

有人能解释这是怎么处理的?而到底发生了什么?结果
 (无论是code生成和语义检查)


解决方案

我建议在C#,Java的,和C阅读

From the interview:


Essentially, IL retains a high-level view of generic types, which allows the CLR to check constraints for 'dynamically constructed' generic types at run-time just like the C# compiler might do for 'statically constructed' types in C# source-code at compile-time.

Here's another snippet (emphasis mine):

这篇关于如何仿制药获得由JIT编译器编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 16:12
查看更多