Exemple #1
0
 public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId)
 {
     if (((isReference == true) &&
          ((expressionText == "dv_0") &&
           (Workflow_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 0;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "BudgetAmount") &&
           (Workflow_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 1;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "dv_0") &&
           (Workflow_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 2;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "BudgetAmount<=100") &&
           (Workflow_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 3;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "0") &&
           (Workflow_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 4;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "outcome_0") &&
           (Workflow_TypedDataContext2.Validate(locations, true, 0) == true))))
     {
         expressionId = 5;
         return(true);
     }
     if (((isReference == false) &&
          ((expressionText == "outcome_0==0") &&
           (Workflow_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 6;
         return(true);
     }
     expressionId = -1;
     return(false);
 }
Exemple #2
0
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.Location> locations)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((expressionId == 0))
     {
         Workflow_TypedDataContext2 refDataContext0 = new Workflow_TypedDataContext2(locations, true);
         return(refDataContext0.GetLocation <Microsoft.Activities.DynamicValue>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set));
     }
     if ((expressionId == 1))
     {
         Workflow_TypedDataContext2 refDataContext1 = new Workflow_TypedDataContext2(locations, true);
         return(refDataContext1.GetLocation <double>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set));
     }
     if ((expressionId == 2))
     {
         Workflow_TypedDataContext2_ForReadOnly valDataContext2 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         Workflow_TypedDataContext2_ForReadOnly valDataContext3 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         Workflow_TypedDataContext2_ForReadOnly valDataContext4 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return(valDataContext4.ValueType___Expr4Get());
     }
     if ((expressionId == 5))
     {
         Workflow_TypedDataContext2 refDataContext5 = new Workflow_TypedDataContext2(locations, true);
         return(refDataContext5.GetLocation <int>(refDataContext5.ValueType___Expr5Get, refDataContext5.ValueType___Expr5Set));
     }
     if ((expressionId == 6))
     {
         Workflow_TypedDataContext2_ForReadOnly valDataContext6 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return(valDataContext6.ValueType___Expr6Get());
     }
     return(null);
 }
 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 = Workflow_TypedDataContext2_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext0 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext0.ValueType___Expr0Get();
     }
     if ((expressionId == 1)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext1 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[1]));
         return refDataContext1.GetLocation<int>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set, expressionId, this.rootActivity, activityContext);
     }
     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)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext0 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext0.ValueType___Expr0Get();
     }
     if ((expressionId == 1)) {
         Workflow_TypedDataContext2 refDataContext1 = new Workflow_TypedDataContext2(locations, true);
         return refDataContext1.GetLocation<int>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set);
     }
     return null;
 }
 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 = Workflow_TypedDataContext2.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext0 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[0]));
         return refDataContext0.GetLocation<Microsoft.Activities.DynamicValue>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 1)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext1 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return valDataContext1.ValueType___Expr1Get();
     }
     if ((expressionId == 2)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext2 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[0]));
         return refDataContext2.GetLocation<string>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 3)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext3 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return valDataContext3.ValueType___Expr3Get();
     }
     if ((expressionId == 4)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[2] == null)) {
             cachedCompiledDataContext[2] = new Workflow_TypedDataContext3_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext3_ForReadOnly valDataContext4 = ((Workflow_TypedDataContext3_ForReadOnly)(cachedCompiledDataContext[2]));
         return valDataContext4.ValueType___Expr4Get();
     }
     if ((expressionId == 5)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[3] == null)) {
             cachedCompiledDataContext[3] = new Workflow_TypedDataContext3(locations, activityContext, true);
         }
         Workflow_TypedDataContext3 refDataContext5 = ((Workflow_TypedDataContext3)(cachedCompiledDataContext[3]));
         return refDataContext5.GetLocation<string>(refDataContext5.ValueType___Expr5Get, refDataContext5.ValueType___Expr5Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 6)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[2] == null)) {
             cachedCompiledDataContext[2] = new Workflow_TypedDataContext3_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext3_ForReadOnly valDataContext6 = ((Workflow_TypedDataContext3_ForReadOnly)(cachedCompiledDataContext[2]));
         return valDataContext6.ValueType___Expr6Get();
     }
     if ((expressionId == 7)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[2] == null)) {
             cachedCompiledDataContext[2] = new Workflow_TypedDataContext3_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext3_ForReadOnly valDataContext7 = ((Workflow_TypedDataContext3_ForReadOnly)(cachedCompiledDataContext[2]));
         return valDataContext7.ValueType___Expr7Get();
     }
     if ((expressionId == 8)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[3] == null)) {
             cachedCompiledDataContext[3] = new Workflow_TypedDataContext3(locations, activityContext, true);
         }
         Workflow_TypedDataContext3 refDataContext8 = ((Workflow_TypedDataContext3)(cachedCompiledDataContext[3]));
         return refDataContext8.GetLocation<Microsoft.Activities.DynamicValue>(refDataContext8.ValueType___Expr8Get, refDataContext8.ValueType___Expr8Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 9)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[3] == null)) {
             cachedCompiledDataContext[3] = new Workflow_TypedDataContext3(locations, activityContext, true);
         }
         Workflow_TypedDataContext3 refDataContext9 = ((Workflow_TypedDataContext3)(cachedCompiledDataContext[3]));
         return refDataContext9.GetLocation<int>(refDataContext9.ValueType___Expr9Get, refDataContext9.ValueType___Expr9Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 10)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[2] == null)) {
             cachedCompiledDataContext[2] = new Workflow_TypedDataContext3_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext3_ForReadOnly valDataContext10 = ((Workflow_TypedDataContext3_ForReadOnly)(cachedCompiledDataContext[2]));
         return valDataContext10.ValueType___Expr10Get();
     }
     if ((expressionId == 11)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[2] == null)) {
             cachedCompiledDataContext[2] = new Workflow_TypedDataContext3_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext3_ForReadOnly valDataContext11 = ((Workflow_TypedDataContext3_ForReadOnly)(cachedCompiledDataContext[2]));
         return valDataContext11.ValueType___Expr11Get();
     }
     if ((expressionId == 12)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[2] == null)) {
             cachedCompiledDataContext[2] = new Workflow_TypedDataContext3_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext3_ForReadOnly valDataContext12 = ((Workflow_TypedDataContext3_ForReadOnly)(cachedCompiledDataContext[2]));
         return valDataContext12.ValueType___Expr12Get();
     }
     if ((expressionId == 13)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[3] == null)) {
             cachedCompiledDataContext[3] = new Workflow_TypedDataContext3(locations, activityContext, true);
         }
         Workflow_TypedDataContext3 refDataContext13 = ((Workflow_TypedDataContext3)(cachedCompiledDataContext[3]));
         return refDataContext13.GetLocation<string>(refDataContext13.ValueType___Expr13Get, refDataContext13.ValueType___Expr13Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 14)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[2] == null)) {
             cachedCompiledDataContext[2] = new Workflow_TypedDataContext3_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext3_ForReadOnly valDataContext14 = ((Workflow_TypedDataContext3_ForReadOnly)(cachedCompiledDataContext[2]));
         return valDataContext14.ValueType___Expr14Get();
     }
     if ((expressionId == 15)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext3_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[2] == null)) {
             cachedCompiledDataContext[2] = new Workflow_TypedDataContext3_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext3_ForReadOnly valDataContext15 = ((Workflow_TypedDataContext3_ForReadOnly)(cachedCompiledDataContext[2]));
         return valDataContext15.ValueType___Expr15Get();
     }
     if ((expressionId == 16)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext16 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return valDataContext16.ValueType___Expr16Get();
     }
     if ((expressionId == 17)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext17 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext17.ValueType___Expr17Get();
     }
     if ((expressionId == 18)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[5] == null)) {
             cachedCompiledDataContext[5] = new Workflow_TypedDataContext4(locations, activityContext, true);
         }
         Workflow_TypedDataContext4 refDataContext18 = ((Workflow_TypedDataContext4)(cachedCompiledDataContext[5]));
         return refDataContext18.GetLocation<string>(refDataContext18.ValueType___Expr18Get, refDataContext18.ValueType___Expr18Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 19)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext19 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext19.ValueType___Expr19Get();
     }
     if ((expressionId == 20)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext20 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext20.ValueType___Expr20Get();
     }
     if ((expressionId == 21)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[5] == null)) {
             cachedCompiledDataContext[5] = new Workflow_TypedDataContext4(locations, activityContext, true);
         }
         Workflow_TypedDataContext4 refDataContext21 = ((Workflow_TypedDataContext4)(cachedCompiledDataContext[5]));
         return refDataContext21.GetLocation<Microsoft.Activities.DynamicValue>(refDataContext21.ValueType___Expr21Get, refDataContext21.ValueType___Expr21Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 22)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[5] == null)) {
             cachedCompiledDataContext[5] = new Workflow_TypedDataContext4(locations, activityContext, true);
         }
         Workflow_TypedDataContext4 refDataContext22 = ((Workflow_TypedDataContext4)(cachedCompiledDataContext[5]));
         return refDataContext22.GetLocation<string>(refDataContext22.ValueType___Expr22Get, refDataContext22.ValueType___Expr22Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 23)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[5] == null)) {
             cachedCompiledDataContext[5] = new Workflow_TypedDataContext4(locations, activityContext, true);
         }
         Workflow_TypedDataContext4 refDataContext23 = ((Workflow_TypedDataContext4)(cachedCompiledDataContext[5]));
         return refDataContext23.GetLocation<string>(refDataContext23.ValueType___Expr23Get, refDataContext23.ValueType___Expr23Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 24)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[5] == null)) {
             cachedCompiledDataContext[5] = new Workflow_TypedDataContext4(locations, activityContext, true);
         }
         Workflow_TypedDataContext4 refDataContext24 = ((Workflow_TypedDataContext4)(cachedCompiledDataContext[5]));
         return refDataContext24.GetLocation<string>(refDataContext24.ValueType___Expr24Get, refDataContext24.ValueType___Expr24Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 25)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[5] == null)) {
             cachedCompiledDataContext[5] = new Workflow_TypedDataContext4(locations, activityContext, true);
         }
         Workflow_TypedDataContext4 refDataContext25 = ((Workflow_TypedDataContext4)(cachedCompiledDataContext[5]));
         return refDataContext25.GetLocation<string>(refDataContext25.ValueType___Expr25Get, refDataContext25.ValueType___Expr25Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 26)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext26 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext26.ValueType___Expr26Get();
     }
     if ((expressionId == 27)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[5] == null)) {
             cachedCompiledDataContext[5] = new Workflow_TypedDataContext4(locations, activityContext, true);
         }
         Workflow_TypedDataContext4 refDataContext27 = ((Workflow_TypedDataContext4)(cachedCompiledDataContext[5]));
         return refDataContext27.GetLocation<string>(refDataContext27.ValueType___Expr27Get, refDataContext27.ValueType___Expr27Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 28)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[5] == null)) {
             cachedCompiledDataContext[5] = new Workflow_TypedDataContext4(locations, activityContext, true);
         }
         Workflow_TypedDataContext4 refDataContext28 = ((Workflow_TypedDataContext4)(cachedCompiledDataContext[5]));
         return refDataContext28.GetLocation<string>(refDataContext28.ValueType___Expr28Get, refDataContext28.ValueType___Expr28Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 29)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[5] == null)) {
             cachedCompiledDataContext[5] = new Workflow_TypedDataContext4(locations, activityContext, true);
         }
         Workflow_TypedDataContext4 refDataContext29 = ((Workflow_TypedDataContext4)(cachedCompiledDataContext[5]));
         return refDataContext29.GetLocation<string>(refDataContext29.ValueType___Expr29Get, refDataContext29.ValueType___Expr29Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 30)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext30 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext30.ValueType___Expr30Get();
     }
     if ((expressionId == 31)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext31 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext31.ValueType___Expr31Get();
     }
     if ((expressionId == 32)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext32 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext32.ValueType___Expr32Get();
     }
     if ((expressionId == 33)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext33 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext33.ValueType___Expr33Get();
     }
     if ((expressionId == 34)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext34 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext34.ValueType___Expr34Get();
     }
     if ((expressionId == 35)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext35 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext35.ValueType___Expr35Get();
     }
     if ((expressionId == 36)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 6);
         if ((cachedCompiledDataContext[4] == null)) {
             cachedCompiledDataContext[4] = new Workflow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext4_ForReadOnly valDataContext36 = ((Workflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[4]));
         return valDataContext36.ValueType___Expr36Get();
     }
     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)) {
         Workflow_TypedDataContext2 refDataContext0 = new Workflow_TypedDataContext2(locations, true);
         return refDataContext0.GetLocation<Microsoft.Activities.DynamicValue>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set);
     }
     if ((expressionId == 1)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext1 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext1.ValueType___Expr1Get();
     }
     if ((expressionId == 2)) {
         Workflow_TypedDataContext2 refDataContext2 = new Workflow_TypedDataContext2(locations, true);
         return refDataContext2.GetLocation<string>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set);
     }
     if ((expressionId == 3)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext3 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext3.ValueType___Expr3Get();
     }
     if ((expressionId == 4)) {
         Workflow_TypedDataContext3_ForReadOnly valDataContext4 = new Workflow_TypedDataContext3_ForReadOnly(locations, true);
         return valDataContext4.ValueType___Expr4Get();
     }
     if ((expressionId == 5)) {
         Workflow_TypedDataContext3 refDataContext5 = new Workflow_TypedDataContext3(locations, true);
         return refDataContext5.GetLocation<string>(refDataContext5.ValueType___Expr5Get, refDataContext5.ValueType___Expr5Set);
     }
     if ((expressionId == 6)) {
         Workflow_TypedDataContext3_ForReadOnly valDataContext6 = new Workflow_TypedDataContext3_ForReadOnly(locations, true);
         return valDataContext6.ValueType___Expr6Get();
     }
     if ((expressionId == 7)) {
         Workflow_TypedDataContext3_ForReadOnly valDataContext7 = new Workflow_TypedDataContext3_ForReadOnly(locations, true);
         return valDataContext7.ValueType___Expr7Get();
     }
     if ((expressionId == 8)) {
         Workflow_TypedDataContext3 refDataContext8 = new Workflow_TypedDataContext3(locations, true);
         return refDataContext8.GetLocation<Microsoft.Activities.DynamicValue>(refDataContext8.ValueType___Expr8Get, refDataContext8.ValueType___Expr8Set);
     }
     if ((expressionId == 9)) {
         Workflow_TypedDataContext3 refDataContext9 = new Workflow_TypedDataContext3(locations, true);
         return refDataContext9.GetLocation<int>(refDataContext9.ValueType___Expr9Get, refDataContext9.ValueType___Expr9Set);
     }
     if ((expressionId == 10)) {
         Workflow_TypedDataContext3_ForReadOnly valDataContext10 = new Workflow_TypedDataContext3_ForReadOnly(locations, true);
         return valDataContext10.ValueType___Expr10Get();
     }
     if ((expressionId == 11)) {
         Workflow_TypedDataContext3_ForReadOnly valDataContext11 = new Workflow_TypedDataContext3_ForReadOnly(locations, true);
         return valDataContext11.ValueType___Expr11Get();
     }
     if ((expressionId == 12)) {
         Workflow_TypedDataContext3_ForReadOnly valDataContext12 = new Workflow_TypedDataContext3_ForReadOnly(locations, true);
         return valDataContext12.ValueType___Expr12Get();
     }
     if ((expressionId == 13)) {
         Workflow_TypedDataContext3 refDataContext13 = new Workflow_TypedDataContext3(locations, true);
         return refDataContext13.GetLocation<string>(refDataContext13.ValueType___Expr13Get, refDataContext13.ValueType___Expr13Set);
     }
     if ((expressionId == 14)) {
         Workflow_TypedDataContext3_ForReadOnly valDataContext14 = new Workflow_TypedDataContext3_ForReadOnly(locations, true);
         return valDataContext14.ValueType___Expr14Get();
     }
     if ((expressionId == 15)) {
         Workflow_TypedDataContext3_ForReadOnly valDataContext15 = new Workflow_TypedDataContext3_ForReadOnly(locations, true);
         return valDataContext15.ValueType___Expr15Get();
     }
     if ((expressionId == 16)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext16 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext16.ValueType___Expr16Get();
     }
     if ((expressionId == 17)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext17 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext17.ValueType___Expr17Get();
     }
     if ((expressionId == 18)) {
         Workflow_TypedDataContext4 refDataContext18 = new Workflow_TypedDataContext4(locations, true);
         return refDataContext18.GetLocation<string>(refDataContext18.ValueType___Expr18Get, refDataContext18.ValueType___Expr18Set);
     }
     if ((expressionId == 19)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext19 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext19.ValueType___Expr19Get();
     }
     if ((expressionId == 20)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext20 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext20.ValueType___Expr20Get();
     }
     if ((expressionId == 21)) {
         Workflow_TypedDataContext4 refDataContext21 = new Workflow_TypedDataContext4(locations, true);
         return refDataContext21.GetLocation<Microsoft.Activities.DynamicValue>(refDataContext21.ValueType___Expr21Get, refDataContext21.ValueType___Expr21Set);
     }
     if ((expressionId == 22)) {
         Workflow_TypedDataContext4 refDataContext22 = new Workflow_TypedDataContext4(locations, true);
         return refDataContext22.GetLocation<string>(refDataContext22.ValueType___Expr22Get, refDataContext22.ValueType___Expr22Set);
     }
     if ((expressionId == 23)) {
         Workflow_TypedDataContext4 refDataContext23 = new Workflow_TypedDataContext4(locations, true);
         return refDataContext23.GetLocation<string>(refDataContext23.ValueType___Expr23Get, refDataContext23.ValueType___Expr23Set);
     }
     if ((expressionId == 24)) {
         Workflow_TypedDataContext4 refDataContext24 = new Workflow_TypedDataContext4(locations, true);
         return refDataContext24.GetLocation<string>(refDataContext24.ValueType___Expr24Get, refDataContext24.ValueType___Expr24Set);
     }
     if ((expressionId == 25)) {
         Workflow_TypedDataContext4 refDataContext25 = new Workflow_TypedDataContext4(locations, true);
         return refDataContext25.GetLocation<string>(refDataContext25.ValueType___Expr25Get, refDataContext25.ValueType___Expr25Set);
     }
     if ((expressionId == 26)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext26 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext26.ValueType___Expr26Get();
     }
     if ((expressionId == 27)) {
         Workflow_TypedDataContext4 refDataContext27 = new Workflow_TypedDataContext4(locations, true);
         return refDataContext27.GetLocation<string>(refDataContext27.ValueType___Expr27Get, refDataContext27.ValueType___Expr27Set);
     }
     if ((expressionId == 28)) {
         Workflow_TypedDataContext4 refDataContext28 = new Workflow_TypedDataContext4(locations, true);
         return refDataContext28.GetLocation<string>(refDataContext28.ValueType___Expr28Get, refDataContext28.ValueType___Expr28Set);
     }
     if ((expressionId == 29)) {
         Workflow_TypedDataContext4 refDataContext29 = new Workflow_TypedDataContext4(locations, true);
         return refDataContext29.GetLocation<string>(refDataContext29.ValueType___Expr29Get, refDataContext29.ValueType___Expr29Set);
     }
     if ((expressionId == 30)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext30 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext30.ValueType___Expr30Get();
     }
     if ((expressionId == 31)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext31 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext31.ValueType___Expr31Get();
     }
     if ((expressionId == 32)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext32 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext32.ValueType___Expr32Get();
     }
     if ((expressionId == 33)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext33 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext33.ValueType___Expr33Get();
     }
     if ((expressionId == 34)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext34 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext34.ValueType___Expr34Get();
     }
     if ((expressionId == 35)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext35 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext35.ValueType___Expr35Get();
     }
     if ((expressionId == 36)) {
         Workflow_TypedDataContext4_ForReadOnly valDataContext36 = new Workflow_TypedDataContext4_ForReadOnly(locations, true);
         return valDataContext36.ValueType___Expr36Get();
     }
     return null;
 }
Exemple #7
0
 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 = Workflow_TypedDataContext2.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext0 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[0]));
         return(refDataContext0.GetLocation <Microsoft.Activities.DynamicValue>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext1 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[0]));
         return(refDataContext1.GetLocation <double>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext2 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext3 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext4 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext4.ValueType___Expr4Get());
     }
     if ((expressionId == 5))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext5 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[0]));
         return(refDataContext5.GetLocation <int>(refDataContext5.ValueType___Expr5Get, refDataContext5.ValueType___Expr5Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 6))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext6 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext6.ValueType___Expr6Get());
     }
     return(null);
 }
 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 = Workflow_TypedDataContext2_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext0 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext0.ValueType___Expr0Get();
     }
     if ((expressionId == 1)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext1 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[1]));
         return refDataContext1.GetLocation<Microsoft.Activities.DynamicValue>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 2)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext2 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[1]));
         return refDataContext2.GetLocation<System.DateTime>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 3)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext3 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[1]));
         return refDataContext3.GetLocation<string>(refDataContext3.ValueType___Expr3Get, refDataContext3.ValueType___Expr3Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 4)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext4 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[1]));
         return refDataContext4.GetLocation<int>(refDataContext4.ValueType___Expr4Get, refDataContext4.ValueType___Expr4Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 5)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext5 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext5.ValueType___Expr5Get();
     }
     if ((expressionId == 6)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext6 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[1]));
         return refDataContext6.GetLocation<string>(refDataContext6.ValueType___Expr6Get, refDataContext6.ValueType___Expr6Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 7)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext7 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext7.ValueType___Expr7Get();
     }
     if ((expressionId == 8)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext8 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[1]));
         return refDataContext8.GetLocation<System.Collections.ObjectModel.Collection<string>>(refDataContext8.ValueType___Expr8Get, refDataContext8.ValueType___Expr8Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 9)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null)) {
             cachedCompiledDataContext[1] = new Workflow_TypedDataContext2(locations, activityContext, true);
         }
         Workflow_TypedDataContext2 refDataContext9 = ((Workflow_TypedDataContext2)(cachedCompiledDataContext[1]));
         return refDataContext9.GetLocation<string>(refDataContext9.ValueType___Expr9Get, refDataContext9.ValueType___Expr9Set, expressionId, this.rootActivity, activityContext);
     }
     if ((expressionId == 10)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext10 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext10.ValueType___Expr10Get();
     }
     if ((expressionId == 11)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext11 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext11.ValueType___Expr11Get();
     }
     if ((expressionId == 12)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext12 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext12.ValueType___Expr12Get();
     }
     if ((expressionId == 13)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext13 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext13.ValueType___Expr13Get();
     }
     if ((expressionId == 14)) {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null)) {
             cachedCompiledDataContext[0] = new Workflow_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow_TypedDataContext2_ForReadOnly valDataContext14 = ((Workflow_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return valDataContext14.ValueType___Expr14Get();
     }
     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)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext0 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext0.ValueType___Expr0Get();
     }
     if ((expressionId == 1)) {
         Workflow_TypedDataContext2 refDataContext1 = new Workflow_TypedDataContext2(locations, true);
         return refDataContext1.GetLocation<Microsoft.Activities.DynamicValue>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set);
     }
     if ((expressionId == 2)) {
         Workflow_TypedDataContext2 refDataContext2 = new Workflow_TypedDataContext2(locations, true);
         return refDataContext2.GetLocation<System.DateTime>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set);
     }
     if ((expressionId == 3)) {
         Workflow_TypedDataContext2 refDataContext3 = new Workflow_TypedDataContext2(locations, true);
         return refDataContext3.GetLocation<string>(refDataContext3.ValueType___Expr3Get, refDataContext3.ValueType___Expr3Set);
     }
     if ((expressionId == 4)) {
         Workflow_TypedDataContext2 refDataContext4 = new Workflow_TypedDataContext2(locations, true);
         return refDataContext4.GetLocation<int>(refDataContext4.ValueType___Expr4Get, refDataContext4.ValueType___Expr4Set);
     }
     if ((expressionId == 5)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext5 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext5.ValueType___Expr5Get();
     }
     if ((expressionId == 6)) {
         Workflow_TypedDataContext2 refDataContext6 = new Workflow_TypedDataContext2(locations, true);
         return refDataContext6.GetLocation<string>(refDataContext6.ValueType___Expr6Get, refDataContext6.ValueType___Expr6Set);
     }
     if ((expressionId == 7)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext7 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext7.ValueType___Expr7Get();
     }
     if ((expressionId == 8)) {
         Workflow_TypedDataContext2 refDataContext8 = new Workflow_TypedDataContext2(locations, true);
         return refDataContext8.GetLocation<System.Collections.ObjectModel.Collection<string>>(refDataContext8.ValueType___Expr8Get, refDataContext8.ValueType___Expr8Set);
     }
     if ((expressionId == 9)) {
         Workflow_TypedDataContext2 refDataContext9 = new Workflow_TypedDataContext2(locations, true);
         return refDataContext9.GetLocation<string>(refDataContext9.ValueType___Expr9Get, refDataContext9.ValueType___Expr9Set);
     }
     if ((expressionId == 10)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext10 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext10.ValueType___Expr10Get();
     }
     if ((expressionId == 11)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext11 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext11.ValueType___Expr11Get();
     }
     if ((expressionId == 12)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext12 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext12.ValueType___Expr12Get();
     }
     if ((expressionId == 13)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext13 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext13.ValueType___Expr13Get();
     }
     if ((expressionId == 14)) {
         Workflow_TypedDataContext2_ForReadOnly valDataContext14 = new Workflow_TypedDataContext2_ForReadOnly(locations, true);
         return valDataContext14.ValueType___Expr14Get();
     }
     return null;
 }