Пример #1
0
        protected override object OnCalc(IList <object> operands, object[] args)
        {
            string file        = operands[0] as string;
            string srcClass    = operands[1] as string;
            string targetClass = operands[2] as string;

            ScriptProcessor.Replace(file, srcClass, targetClass);
            return(0);
        }
Пример #2
0
        protected override CalculatorValue OnCalc(IList <CalculatorValue> operands)
        {
            string file        = operands[0].AsString;
            string srcClass    = operands[1].AsString;
            string targetClass = operands[2].AsString;

            ScriptProcessor.Replace(file, srcClass, targetClass);
            return(0);
        }