Example #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 = CreateUserActivity_TypedDataContext1.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = CreateUserActivity_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new CreateUserActivity_TypedDataContext1(locations, activityContext, true);
         }
         CreateUserActivity_TypedDataContext1 refDataContext0 = ((CreateUserActivity_TypedDataContext1)(cachedCompiledDataContext[0]));
         return(refDataContext0.GetLocation <bool>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = CreateUserActivity_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new CreateUserActivity_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         CreateUserActivity_TypedDataContext1_ForReadOnly valDataContext1 = ((CreateUserActivity_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = CreateUserActivity_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new CreateUserActivity_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         CreateUserActivity_TypedDataContext1_ForReadOnly valDataContext2 = ((CreateUserActivity_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext2.ValueType___Expr2Get());
     }
     return(null);
 }
Example #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))
     {
         CreateUserActivity_TypedDataContext1 refDataContext0 = new CreateUserActivity_TypedDataContext1(locations, true);
         return(refDataContext0.GetLocation <bool>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set));
     }
     if ((expressionId == 1))
     {
         CreateUserActivity_TypedDataContext1_ForReadOnly valDataContext1 = new CreateUserActivity_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         CreateUserActivity_TypedDataContext1_ForReadOnly valDataContext2 = new CreateUserActivity_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext2.ValueType___Expr2Get());
     }
     return(null);
 }