Code Effects: Create a custom Action that accepts an expression?

39 Views Asked by At

Is it possible to create a custom Action on my that accepts an expression like the built in Set method does?

EX:

    public class EvaluatorClass {
        [Action]
        public void SetSomeThing(Expression myExpression) {
            var result = myExpression();

            --do some other stuff using the value returned from the above expression--
    }
0

There are 0 best solutions below