Beispiel #1
0
        public void AppendAttribute(IXmlSettingAttribute attribute)
        {
            CXmlSettingAttrImp value = (CXmlSettingAttrImp)attribute;

            if (m_Attributes.Exists(m => m.name == value.name))
            {
                throw new Exception("duplicate attribute name[" + value.name + "] exist in node, append failed");
            }
            else
            {
                m_Attributes.Add(value);
            }
        }
Beispiel #2
0
        public void RemoveAttribute(IXmlSettingAttribute attribute)
        {
            CXmlSettingAttrImp value = (CXmlSettingAttrImp)attribute;

            m_Attributes.Remove(value);
        }