示例#1
0
        public Variable SetProperty(string propName, Variable value, ParsingScript script, string baseName = "")
        {
            int ind = propName.IndexOf('.');

            if (ind > 0)
            { // The case a.b.c = ... is dealt here recursively
                string   varName        = propName.Substring(0, ind);
                string   actualPropName = propName.Substring(ind + 1);
                Variable property       = GetProperty(varName);
                Utils.CheckNotNull(property, varName, script);
                return(property.SetProperty(actualPropName, value, script, baseName));
            }
            return(FinishSetProperty(propName, value, baseName));
        }