“EnumerableExecutor”类的目的和用途是什么?
以下是 System.Linq.EnumerableExecutor 的文档。
我无法弄清楚它可能做什么或有什么用途。以下是我从 Reflector 获得的源代码:
public abstract class EnumerableExecutor
{
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
protected EnumerableExecutor(){}
}
public class EnumerableExecutor<T> : EnumerableExecutor
{
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public EnumerableExecutor(Expression expression){}
}
有人接受吗?
Here is the documentation for System.Linq.EnumerableExecutor.
I can't figure out what it could possibly do or be used for. Below is the source code I get from reflector:
public abstract class EnumerableExecutor
{
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
protected EnumerableExecutor(){}
}
public class EnumerableExecutor<T> : EnumerableExecutor
{
[TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public EnumerableExecutor(Expression expression){}
}
Any takers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如文档中所述,我们的代码不打算使用它。它具有可能对框架内部有用的内部方法,例如:
目的似乎是提供编译
Expression
、执行它并返回结果的功能。As it is stated in the documentation, it is not intended to be used by our code. It has internal methods that might be useful to the internals of the Framework, such as:
It seems that the purpose is to provide functionality to compile an
Expression
, execute it and return the result.