예제 #1
0
        protected internal virtual int GetLoopVariable(IActivityExecution execution, string variableName)
        {
            IIntegerValue value = execution.GetVariableLocalTyped <IIntegerValue>(variableName);

            EnsureUtil.EnsureNotNull(
                "The variable \"" + variableName + "\" could not be found in execution with id " + execution.Id, "value",
                value);
            return((int)value.Value);
        }