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 = StateMachineNumberGuessWorkflow_TypedDataContext3_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation); } if ((expressionId == 0)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = StateMachineNumberGuessWorkflow_TypedDataContext3_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 4); if ((cachedCompiledDataContext[0] == null)) { cachedCompiledDataContext[0] = new StateMachineNumberGuessWorkflow_TypedDataContext3_ForReadOnly(locations, activityContext, true); } StateMachineNumberGuessWorkflow_TypedDataContext3_ForReadOnly valDataContext0 = ((StateMachineNumberGuessWorkflow_TypedDataContext3_ForReadOnly)(cachedCompiledDataContext[0])); return valDataContext0.ValueType___Expr0Get(); } if ((expressionId == 1)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = StateMachineNumberGuessWorkflow_TypedDataContext3.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 4); if ((cachedCompiledDataContext[1] == null)) { cachedCompiledDataContext[1] = new StateMachineNumberGuessWorkflow_TypedDataContext3(locations, activityContext, true); } StateMachineNumberGuessWorkflow_TypedDataContext3 refDataContext1 = ((StateMachineNumberGuessWorkflow_TypedDataContext3)(cachedCompiledDataContext[1])); return refDataContext1.GetLocation<int>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set, expressionId, this.rootActivity, activityContext); } if ((expressionId == 2)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 4); if ((cachedCompiledDataContext[2] == null)) { cachedCompiledDataContext[2] = new StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly(locations, activityContext, true); } StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly valDataContext2 = ((StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[2])); return valDataContext2.ValueType___Expr2Get(); } if ((expressionId == 3)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 4); if ((cachedCompiledDataContext[2] == null)) { cachedCompiledDataContext[2] = new StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly(locations, activityContext, true); } StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly valDataContext3 = ((StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[2])); return valDataContext3.ValueType___Expr3Get(); } if ((expressionId == 4)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = StateMachineNumberGuessWorkflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 4); if ((cachedCompiledDataContext[3] == null)) { cachedCompiledDataContext[3] = new StateMachineNumberGuessWorkflow_TypedDataContext4(locations, activityContext, true); } StateMachineNumberGuessWorkflow_TypedDataContext4 refDataContext4 = ((StateMachineNumberGuessWorkflow_TypedDataContext4)(cachedCompiledDataContext[3])); return refDataContext4.GetLocation<int>(refDataContext4.ValueType___Expr4Get, refDataContext4.ValueType___Expr4Set, expressionId, this.rootActivity, activityContext); } if ((expressionId == 5)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = StateMachineNumberGuessWorkflow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 4); if ((cachedCompiledDataContext[3] == null)) { cachedCompiledDataContext[3] = new StateMachineNumberGuessWorkflow_TypedDataContext4(locations, activityContext, true); } StateMachineNumberGuessWorkflow_TypedDataContext4 refDataContext5 = ((StateMachineNumberGuessWorkflow_TypedDataContext4)(cachedCompiledDataContext[3])); return refDataContext5.GetLocation<int>(refDataContext5.ValueType___Expr5Get, refDataContext5.ValueType___Expr5Set, expressionId, this.rootActivity, activityContext); } if ((expressionId == 6)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 4); if ((cachedCompiledDataContext[2] == null)) { cachedCompiledDataContext[2] = new StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly(locations, activityContext, true); } StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly valDataContext6 = ((StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[2])); return valDataContext6.ValueType___Expr6Get(); } if ((expressionId == 7)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 4); if ((cachedCompiledDataContext[2] == null)) { cachedCompiledDataContext[2] = new StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly(locations, activityContext, true); } StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly valDataContext7 = ((StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[2])); return valDataContext7.ValueType___Expr7Get(); } if ((expressionId == 8)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 4); if ((cachedCompiledDataContext[2] == null)) { cachedCompiledDataContext[2] = new StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly(locations, activityContext, true); } StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly valDataContext8 = ((StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[2])); 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)) { StateMachineNumberGuessWorkflow_TypedDataContext3_ForReadOnly valDataContext0 = new StateMachineNumberGuessWorkflow_TypedDataContext3_ForReadOnly(locations, true); return valDataContext0.ValueType___Expr0Get(); } if ((expressionId == 1)) { StateMachineNumberGuessWorkflow_TypedDataContext3 refDataContext1 = new StateMachineNumberGuessWorkflow_TypedDataContext3(locations, true); return refDataContext1.GetLocation<int>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set); } if ((expressionId == 2)) { StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly valDataContext2 = new StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly(locations, true); return valDataContext2.ValueType___Expr2Get(); } if ((expressionId == 3)) { StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly valDataContext3 = new StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly(locations, true); return valDataContext3.ValueType___Expr3Get(); } if ((expressionId == 4)) { StateMachineNumberGuessWorkflow_TypedDataContext4 refDataContext4 = new StateMachineNumberGuessWorkflow_TypedDataContext4(locations, true); return refDataContext4.GetLocation<int>(refDataContext4.ValueType___Expr4Get, refDataContext4.ValueType___Expr4Set); } if ((expressionId == 5)) { StateMachineNumberGuessWorkflow_TypedDataContext4 refDataContext5 = new StateMachineNumberGuessWorkflow_TypedDataContext4(locations, true); return refDataContext5.GetLocation<int>(refDataContext5.ValueType___Expr5Get, refDataContext5.ValueType___Expr5Set); } if ((expressionId == 6)) { StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly valDataContext6 = new StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly(locations, true); return valDataContext6.ValueType___Expr6Get(); } if ((expressionId == 7)) { StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly valDataContext7 = new StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly(locations, true); return valDataContext7.ValueType___Expr7Get(); } if ((expressionId == 8)) { StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly valDataContext8 = new StateMachineNumberGuessWorkflow_TypedDataContext4_ForReadOnly(locations, true); return valDataContext8.ValueType___Expr8Get(); } return null; }