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); }
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); }