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 = DecryptActivity_TypedDataContext1_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = DecryptActivity_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new DecryptActivity_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         DecryptActivity_TypedDataContext1_ForReadOnly valDataContext0 = ((DecryptActivity_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = DecryptActivity_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new DecryptActivity_TypedDataContext1(locations, activityContext, true);
         }
         DecryptActivity_TypedDataContext1 refDataContext1 = ((DecryptActivity_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext1.GetLocation <string>(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))
     {
         DecryptActivity_TypedDataContext1_ForReadOnly valDataContext0 = new DecryptActivity_TypedDataContext1_ForReadOnly(locations, true);
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         DecryptActivity_TypedDataContext1 refDataContext1 = new DecryptActivity_TypedDataContext1(locations, true);
         return(refDataContext1.GetLocation <string>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set));
     }
     return(null);
 }
 public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId)
 {
     if (((isReference == false) &&
          ((expressionText == "Message") &&
           (DecryptActivity_TypedDataContext1_ForReadOnly.Validate(locations, true, 0) == true))))
     {
         expressionId = 0;
         return(true);
     }
     if (((isReference == true) &&
          ((expressionText == "Result") &&
           (DecryptActivity_TypedDataContext1.Validate(locations, true, 0) == true))))
     {
         expressionId = 1;
         return(true);
     }
     expressionId = -1;
     return(false);
 }