Convert Expression> to Expression dynamically

前端 未结 3 1779
野的像风
野的像风 2020-12-30 12:48

I cannot find the way to convert from Expression> to Expression>. Since Im using a lot of reflection, in fact, what I rea

3条回答
  •  梦毁少年i
    2020-12-30 13:38

    It looks like you want to combine 2 expressions - T2 to T1 conversion and than call to expr with given result.

    This question discusses Combining two expressions (Expression>) in general. For your case I think you need Expression.Call to construct conversion expression and than again to call original expression with result of conversion.

提交回复
热议问题