Converting between types inside Lambda Expressions
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I need some urgent help on something. I need to convert Expression<Func<T1, bool>> to Expression<Func<T2, bool>>. I have a funtion that does T2 = Convert(T1) In other words I need a function that does something like:
Expression<Func<T2, bool>> Convert(Expression<Func<T1, bool>> pSource) {
Expression<Func<T2, bool>> vResult;
...
...
...
T2 vOutpuParameter = Convert(vInputParameter); // vImputParameter of type T1
...
...
...
return vResult;
}Does anyone have any clues?