Esempio n. 1
0
        public override void PreExecute(IPreExecutionContext pec)
        {
            Object function;

            FunctionScope fcs = pec.SearchFunction(_labels, out function);

            if (fcs == FunctionScope.External)
            {
                _fctToCall      = null;
                _externFunction = (Type)function;
                _nameOfMethod   = _labels[_labels.Count - 1];
            }
            else if (fcs == FunctionScope.Internal)
            {
                _fctToCall      = (Function)function;
                _externFunction = null;
                _nameOfMethod   = _labels[_labels.Count - 1];
            }
            else
            {
                pec.AddError("Error : Function not found.");
            }
        }