Linq.Expression.Optimizer icon indicating copy to clipboard operation
Linq.Expression.Optimizer copied to clipboard

[Feature Request] Generic Type parameter for Expression in visit method

Open SpaceOgre opened this issue 1 year ago • 1 comments

Description

It would be nice if the visit method got a generic type overload, so I don't have to cast the expression returned.

return (Expression<Func<Models.Organisation.EducationEvent, bool>>)ExpressionOptimizer.visit(expression);

Not sure how it would look in F# but something like this in C#

public Expression<T> visit<T>(Expression<T> expression)

SpaceOgre avatar Sep 23 '22 14:09 SpaceOgre