The CompiledExpressionActivityVisitor parser doesn't find expressions from an activity Implementation. This means that those expressions won't have a CompiledExpressionRoot and will rely on legacy code to compile for VB and for C# doesn't work at all.
Here is an example of an activity that will not have the expression compiled:
class ActivityWithVBValue : Activity
{
public ActivityWithVBValue()
{
Implementation = () => new WriteLine()
{
Text = new InArgument<string>(new VisualBasicValue<string>("will not compile"))
};
}
}
The
CompiledExpressionActivityVisitor
parser doesn't find expressions from an activityImplementation
. This means that those expressions won't have aCompiledExpressionRoot
and will rely on legacy code to compile for VB and for C# doesn't work at all.Here is an example of an activity that will not have the expression compiled: