Exemplo n.º 1
0
        public override object Execute(LogicExecuteMethodInformation executeMethodInformation)
        {
            LogicLocalVariable logicLocalVariable = executeMethodInformation.DeclareLocalVariable(this);

            if (logicLocalVariable == null)
            {
                return(null);
            }
            if (this.abD != null)
            {
                logicLocalVariable.Value = this.abD.Execute(executeMethodInformation);
            }
            return(null);
        }
Exemplo n.º 2
0
 private bool A(LogicExecuteMethodInformation logicExecuteMethodInformation, object[] array)
 {
     for (int i = 0; i < base.Parameters.Count; i++)
     {
         LogicParameter logicParameter = base.Parameters[i];
         object         obj            = array[i];
         if (!logicParameter.parameterType.IsAssignableFrom((obj != null) ? obj.GetType() : null))
         {
             Log.Error("Method: invalid parameter value type \"{0}\"", logicParameter.ParameterName);
             return(false);
         }
         if (!string.IsNullOrEmpty(logicParameter.ParameterName))
         {
             LogicLocalVariable logicLocalVariable = logicExecuteMethodInformation.DeclareLocalVariable(logicParameter);
             logicLocalVariable.Value = obj;
         }
     }
     return(true);
 }