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 = Prompt_TypedDataContext1_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Prompt_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Prompt_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Prompt_TypedDataContext1_ForReadOnly valDataContext0 = ((Prompt_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Prompt_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Prompt_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Prompt_TypedDataContext1_ForReadOnly valDataContext1 = ((Prompt_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Prompt_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Prompt_TypedDataContext1(locations, activityContext, true);
         }
         Prompt_TypedDataContext1 refDataContext2 = ((Prompt_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext2.GetLocation <int>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set, 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))
     {
         Prompt_TypedDataContext1_ForReadOnly valDataContext0 = new Prompt_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         Prompt_TypedDataContext1_ForReadOnly valDataContext1 = new Prompt_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         Prompt_TypedDataContext1 refDataContext2 = new Prompt_TypedDataContext1(locations, true);
         return(refDataContext2.GetLocation <int>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set));
     }
     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)) {
         Prompt_TypedDataContext1_ForReadOnly valDataContext0 = new Prompt_TypedDataContext1_ForReadOnly(locations, true);
         return valDataContext0.ValueType___Expr0Get();
     }
     if ((expressionId == 1)) {
         Prompt_TypedDataContext1_ForReadOnly valDataContext1 = new Prompt_TypedDataContext1_ForReadOnly(locations, true);
         return valDataContext1.ValueType___Expr1Get();
     }
     if ((expressionId == 2)) {
         Prompt_TypedDataContext1 refDataContext2 = new Prompt_TypedDataContext1(locations, true);
         return refDataContext2.GetLocation<int>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set);
     }
     return null;
 }