C# “EnumerableExecutor”类的用途是什么?

C# “EnumerableExecutor”类的用途是什么?,c#,linq,c#-4.0,ienumerable,expression,C#,Linq,C# 4.0,Ienumerable,Expression,这是您的文档 我想不出它能做什么或是用来做什么。下面是我从reflector获得的源代码: public abstract class EnumerableExecutor { [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] protected EnumerableExecutor(){} } public cl

这是您的文档

我想不出它能做什么或是用来做什么。下面是我从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){}
}
公共抽象类枚举执行器
{
[TargetedPatchingOptOut(“性能对于跨NGen映像边界内联这种类型的方法至关重要”)]
受保护的EnumerableExecutor(){}
}
公共类EnumerableExecutor:EnumerableExecutor
{
[TargetedPatchingOptOut(“性能对于跨NGen映像边界内联这种类型的方法至关重要”)]
公共枚举执行器(表达式){}
}

任何接受者?

正如文档中所述,我们的代码不打算使用它。它具有可能对框架内部有用的内部方法,例如:

internal T Execute();

internal override object ExecuteBoxed();

其目的似乎是提供编译
表达式、执行它并返回结果的功能。

“此API支持.NET Framework基础结构,不打算直接从您的代码中使用。”不确定这里的任何人是否能够提供超过“表示表达式树,并提供重写后执行表达式树的功能”,老实说,但您永远不知道。