public override void WriteXml(XmlWriter writer) { writer.WriteStartElement(GetType().ToString()); WriteXmlBaseImpl(writer); writer.WriteElementString(nameof(Width), Width.ToString()); writer.WriteElementString(nameof(Height), Height.ToString()); CentrePoint.WriteXml(writer); writer.WriteEndElement(); }
public override void WriteXml(XmlWriter writer) { writer.WriteStartElement(GetType().ToString()); base.WriteXml(writer); writer.WriteAttributeString(nameof(IsClosed), IsClosed.ToString()); CentrePoint.WriteXml(writer); writer.WriteStartElement(nameof(Points)); foreach (var point in Points) { point.WriteXml(writer); } writer.WriteEndElement(); writer.WriteEndElement(); }