Generic unboxing expressions <Func <T, object >> for expression <Func <T, TResult >>
1 answer
If I understand your question correctly, then you can look for Expression.Convert
Expression<Func<T,object>> original = // ... something Expression<Func<T,TResult>> converted = Expression.Lambda<Func<T,TResult>>( Expression.Convert(original.Body,typeof(TResult)), original.Parameters); +3