public XElement ToXml(string name) { return(new XElement(name, Point1.ToXml("P1"), Point2.ToXml("P2"), Point3.ToXml("P3"), Point4.ToXml("P4") )); }