Exemple #1
0
        /// <summary>
        /// Converts an object into its XML representation.
        /// </summary>
        /// <param name="writer">The <see cref="T:System.Xml.XmlWriter"/> stream to which the object is serialized.</param>
        public void WriteXml(XmlWriter writer)
        {
            writer.WriteStartElement("Speed");
            _speed.WriteXml(writer);
            writer.WriteEndElement();

            writer.WriteStartElement("Bearing");
            _bearing.WriteXml(writer);
            writer.WriteEndElement();
        }