Should help to avoid dependency on ExpressionToCodeLib in such scenarios https://github.com/dadhi/DryIoc/issues/101 It will also prevent double conversion from LightExpression to Linq.Expressions, then to code.