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); } }
public void RemoveAttribute(IXmlSettingAttribute attribute) { CXmlSettingAttrImp value = (CXmlSettingAttrImp)attribute; m_Attributes.Remove(value); }