Пример #1
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 = RandomLooper_TypedDataContext2.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RandomLooper_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RandomLooper_TypedDataContext2(locations, activityContext, true);
         }
         RandomLooper_TypedDataContext2 refDataContext0 = ((RandomLooper_TypedDataContext2)(cachedCompiledDataContext[0]));
         return(refDataContext0.GetLocation <int>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RandomLooper_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RandomLooper_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         RandomLooper_TypedDataContext2_ForReadOnly valDataContext1 = ((RandomLooper_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RandomLooper_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RandomLooper_TypedDataContext2(locations, activityContext, true);
         }
         RandomLooper_TypedDataContext2 refDataContext2 = ((RandomLooper_TypedDataContext2)(cachedCompiledDataContext[0]));
         return(refDataContext2.GetLocation <int>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 3))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RandomLooper_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RandomLooper_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         RandomLooper_TypedDataContext2_ForReadOnly valDataContext3 = ((RandomLooper_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RandomLooper_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RandomLooper_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         RandomLooper_TypedDataContext2_ForReadOnly valDataContext4 = ((RandomLooper_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext4.ValueType___Expr4Get());
     }
     if ((expressionId == 5))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RandomLooper_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RandomLooper_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         RandomLooper_TypedDataContext2_ForReadOnly valDataContext5 = ((RandomLooper_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext5.ValueType___Expr5Get());
     }
     if ((expressionId == 6))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RandomLooper_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RandomLooper_TypedDataContext2(locations, activityContext, true);
         }
         RandomLooper_TypedDataContext2 refDataContext6 = ((RandomLooper_TypedDataContext2)(cachedCompiledDataContext[0]));
         return(refDataContext6.GetLocation <int>(refDataContext6.ValueType___Expr6Get, refDataContext6.ValueType___Expr6Set, expressionId, this.rootActivity, activityContext));
     }
     return(null);
 }