protected virtual void Write(string localName, HCObject obj) { m_xmlWriter.WriteStartElement(localName); m_xmlWriter.WriteAttributeString("id", obj.ID); m_xmlWriter.WriteElementString("Description", obj.Description); m_xmlWriter.WriteEndElement(); }
protected virtual XElement Write(string name, HCObject obj) { return new XElement(name, new XAttribute("id", obj.ID), new XElement("Description", obj.Description)); }