Combining two expressions into a pipeline
问题 Let us say I have the following two expressions: Expression<Func<T, IEnumerable<TNested>>> collectionSelector; Expression<Func<IEnumerable<TNested>, TNested>> elementSelector; Is there a way to "combine" these in order to form the below: (?) Expression<Func<T, TNested>> selector; EDIT: Performance is very critical, so I would appreciate an optimal solution with very little overhead, if possible. Many Thanks! 回答1: static Expression<Func<A, C>> Foo<A, B, C>( Expression<Func<B, C>> f, Expression