CreateObject() public method

public CreateObject ( string className ) : object
className string
return object
        public bool IsValid(object parameter, Condition condition)
        {
            IConditionEvaluator evaluator = (IConditionEvaluator)addIn.CreateObject(className);

            if (evaluator == null)
            {
                return(false);
            }
            addIn.AddInTree.ConditionEvaluators[name] = evaluator;
            return(evaluator.IsValid(parameter, condition));
        }
Ejemplo n.º 2
0
        public object BuildItem(object caller, Codon codon, ArrayList subItems)
        {
            IDoozer doozer = (IDoozer)addIn.CreateObject(className);

            if (doozer == null)
            {
                return(null);
            }
            AddInTree.Doozers[name] = doozer;
            return(doozer.BuildItem(caller, codon, subItems));
        }
Ejemplo n.º 3
0
        public object BuildItem(BuildItemArgs args)
        {
            IDoozer doozer = (IDoozer)addIn.CreateObject(className);

            if (doozer == null)
            {
                return(null);
            }
            AddInTree.Doozers[name] = doozer;
            return(doozer.BuildItem(args));
        }