public object InvokeExpression(int expressionId, System.Collections.Generic.IList<System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext) {
     if ((this.rootActivity == null)) {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null)) {
         this.dataContextActivities = ReceiveTaskAnswer_TypedDataContext2_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = ReceiveTaskAnswer_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext0 = ((ReceiveTaskAnswer_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext0.ValueType___Expr0Get();
     }
     if ((expressionId == 1)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = ReceiveTaskAnswer_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext1 = ((ReceiveTaskAnswer_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext1.ValueType___Expr1Get();
     }
     if ((expressionId == 2)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = ReceiveTaskAnswer_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new ReceiveTaskAnswer_TypedDataContext2(locations, activityContext, true);
         }
         ReceiveTaskAnswer_TypedDataContext2 refDataContext2 = ((ReceiveTaskAnswer_TypedDataContext2)(cachedCompiledDataContext[1]));
         return refDataContext2.GetLocation<Microsoft.Activities.Messaging.SubscriptionFilter>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 3)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = ReceiveTaskAnswer_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext3 = ((ReceiveTaskAnswer_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext3.ValueType___Expr3Get();
     }
     if ((expressionId == 4)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = ReceiveTaskAnswer_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext4 = ((ReceiveTaskAnswer_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext4.ValueType___Expr4Get();
     }
     if ((expressionId == 5)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = ReceiveTaskAnswer_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext5 = ((ReceiveTaskAnswer_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext5.ValueType___Expr5Get();
     }
     if ((expressionId == 6)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = ReceiveTaskAnswer_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext6 = ((ReceiveTaskAnswer_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext6.ValueType___Expr6Get();
     }
     if ((expressionId == 7)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = ReceiveTaskAnswer_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new ReceiveTaskAnswer_TypedDataContext2(locations, activityContext, true);
         }
         ReceiveTaskAnswer_TypedDataContext2 refDataContext7 = ((ReceiveTaskAnswer_TypedDataContext2)(cachedCompiledDataContext[1]));
         return refDataContext7.GetLocation<Microsoft.Activities.DynamicValue>(refDataContext7.ValueType___Expr7Get, refDataContext7.ValueType___Expr7Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 8)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = ReceiveTaskAnswer_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext8 = ((ReceiveTaskAnswer_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext8.ValueType___Expr8Get();
     }
     return null;
 }
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList<System.Activities.Location> locations) {
     if ((this.rootActivity == null)) {
         this.rootActivity = this;
     }
     if ((expressionId == 0)) {
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext0 = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext0.ValueType___Expr0Get();
     }
     if ((expressionId == 1)) {
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext1 = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext1.ValueType___Expr1Get();
     }
     if ((expressionId == 2)) {
         ReceiveTaskAnswer_TypedDataContext2 refDataContext2 = new ReceiveTaskAnswer_TypedDataContext2(locations, true);
         return refDataContext2.GetLocation<Microsoft.Activities.Messaging.SubscriptionFilter>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set);
     }
     if ((expressionId == 3)) {
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext3 = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext3.ValueType___Expr3Get();
     }
     if ((expressionId == 4)) {
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext4 = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext4.ValueType___Expr4Get();
     }
     if ((expressionId == 5)) {
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext5 = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext5.ValueType___Expr5Get();
     }
     if ((expressionId == 6)) {
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext6 = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext6.ValueType___Expr6Get();
     }
     if ((expressionId == 7)) {
         ReceiveTaskAnswer_TypedDataContext2 refDataContext7 = new ReceiveTaskAnswer_TypedDataContext2(locations, true);
         return refDataContext7.GetLocation<Microsoft.Activities.DynamicValue>(refDataContext7.ValueType___Expr7Get, refDataContext7.ValueType___Expr7Set);
     }
     if ((expressionId == 8)) {
         ReceiveTaskAnswer_TypedDataContext2_ForReadOnly valDataContext8 = new ReceiveTaskAnswer_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext8.ValueType___Expr8Get();
     }
     return null;
 }