Esempio n. 1
0
        public virtual ktValue AddProperty(ktString Name, ktValue Value)
        {
            if (Value == null)
            {
                throw new ktError("Need a value-object when adding property '" +
                                Name + "' to class '" + m_Name + "'.", ktERR.NOTSET);
            }

            Value.SetName(Name);

            return AddProperty(Value);
        }
Esempio n. 2
0
        public virtual ktValue AddVariable(ktString Name, ktValue Value)
        {
            if (Value == null)
            {
                throw new ktError("Need a value-object when adding variable '" +
                                Name + "' to context '" + m_Name + "'.", ktERR.NOTSET);
            }

            Value.SetName(Name);

            return AddVariable(Value);
        }