Tag: 组合子

将两个表达式组合成一个管道

我们假设我有以下两种表达方式: Expression<Func<T, IEnumerable>> collectionSelector; Expression<Func<IEnumerable, TNested>> elementSelector; 有没有办法“组合”这些以形成以下:(?) Expression<Func> selector; 编辑: 性能非常关键,因此如果可能的话,我会非常感谢能够以极少的开销实现最佳解决方案。 非常感谢!