I want to be able to dynamically construct an Action from a string, so that I am able to operate on an output object when taking an input object.
This post essentially asks "Is there a library/framework that will allow me to construct an Action from string?".
I have tried using Flee to accomplish this, but it seems you are unable to set variables from within the expressions that Flee compiles. As such, it does not quite meet the needs of my project.
I would like to achieve this functionality:
var source = new Person();
// ... define source
var target = new Hat();
// ... define target
var expression = "hat.HatSize = person.HeadSize";
var action = ActionBuilder.WithParameters(source, target).CompileExpression(expression);
action(source, target);
Within ActionBuilder I would want to achieve similar functionality to Flee, in that the type names of exposed variables are exposed to the expression that is being compiled.
My apologies if this is not the correct format in which I should be asking this question, or if I have missed a framework/library that is glaringly obvious.