public void WriteTo(ArcXmlWriter writer) { try { writer.WriteStartElement(XmlName); string[] coords = new string[Count]; for (int i = 0; i < Count; ++i) { coords[i] = String.Format("{0}{1}{2}", this[i].X, writer.CoordinateSeparator[0], this[i].X); } writer.WriteString(String.Join(writer.TupleSeparator[0].ToString(), coords)); writer.WriteEndElement(); } catch (Exception ex) { if (ex is ArcXmlException) { throw ex; } else { throw new ArcXmlException(String.Format("Could not write {0} object.", GetType().Name), ex); } } }