Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="name_"></param>
 /// <param name="var_"></param>
 internal NamedVariable(string name_, ValueContainer var_)
 {
     Name = name_;
     InternalValueContainer = var_;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="name_"></param>
 /// <param name="var_"></param>
 private void Add(string name_, ValueContainer var_)
 {
     NamedVariable namedVar = new NamedVariable(name_, var_);
     m_Vars.Add(namedVar);
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="name_"></param>
        /// <param name="var_"></param>
        private void Add(string name_, ValueContainer var_)
        {
            NamedVariable namedVar = new NamedVariable(name_, var_);

            m_Vars.Add(namedVar);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="node_"></param>
        public void Load(XmlNode node_)
        {
            XmlNode varListNode = node_.SelectSingleNode("NamedVariableList");
            int version = int.Parse(varListNode.Attributes["version"].Value);

            Clear();

            foreach (XmlNode node in varListNode.SelectNodes("NamedVariable"))
            {
                int varVersion = int.Parse(node.Attributes["version"].Value);
                string key = node.Attributes["key"].Value;
                ValueContainer value = new ValueContainer(node);
                Add(key, value);
            }
        }