score:0

Accepted answer

The only thing missing from the code was a working signature.

Expression<Func<Device, Object >> GetLambda()

In my case , SortingDevicesFilters was an enum that - with a proper switch - returns the appropriate filters.

So it is possible to return a linq lambda from a function.


Related Articles