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 = Rules_CreateRackRate_TypedDataContext2.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation); } if ((expressionId == 0)) { System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Rules_CreateRackRate_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2); if ((cachedCompiledDataContext[0] == null)) { cachedCompiledDataContext[0] = new Rules_CreateRackRate_TypedDataContext2(locations, activityContext, true); } Rules_CreateRackRate_TypedDataContext2 refDataContext0 = ((Rules_CreateRackRate_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 = Rules_CreateRackRate_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2); if ((cachedCompiledDataContext[1] == null)) { cachedCompiledDataContext[1] = new Rules_CreateRackRate_TypedDataContext2_ForReadOnly(locations, activityContext, true); } Rules_CreateRackRate_TypedDataContext2_ForReadOnly valDataContext1 = ((Rules_CreateRackRate_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1])); return(valDataContext1.ValueType___Expr1Get()); } 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)) { Rules_CreateRackRate_TypedDataContext2 refDataContext0 = new Rules_CreateRackRate_TypedDataContext2(locations, true); return(refDataContext0.GetLocation <int>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set)); } if ((expressionId == 1)) { Rules_CreateRackRate_TypedDataContext2_ForReadOnly valDataContext1 = new Rules_CreateRackRate_TypedDataContext2_ForReadOnly(locations, true); return(valDataContext1.ValueType___Expr1Get()); } return(null); }
public bool CanExecuteExpression(string expressionText, bool isReference, System.Collections.Generic.IList <System.Activities.LocationReference> locations, out int expressionId) { if (((isReference == true) && ((expressionText == "outObject") && (Rules_CreateRackRate_TypedDataContext2.Validate(locations, true, 0) == true)))) { expressionId = 0; return(true); } if (((isReference == false) && ((expressionText == "inpObject") && (Rules_CreateRackRate_TypedDataContext2_ForReadOnly.Validate(locations, true, 0) == true)))) { expressionId = 1; return(true); } expressionId = -1; return(false); }