protected override Location <TResult> Execute(CodeActivityContext context)
 {
     if (expressionTree == null)
     {
         return((Location <TResult>)invoker.InvokeExpression(context));
     }
     if (locationFactory == null)
     {
         locationFactory = ExpressionUtilities.CreateLocationFactory <TResult>(this.expressionTree);
     }
     return(locationFactory.CreateLocation(context));
 }
Beispiel #2
0
 protected override TResult Execute(CodeActivityContext context)
 {
     if (expressionTree == null)
     {
         return((TResult)invoker.InvokeExpression(context));
     }
     if (compiledExpression == null)
     {
         compiledExpression = expressionTree.Compile();
     }
     return(compiledExpression(context));
 }