Пример #1
0
        /// <summary>
        /// Generates an object from its XML representation.
        /// </summary>
        /// <param name="reader">The <see cref="T:System.Xml.XmlReader"/> stream from which the object is deserialized.</param>
        public void ReadXml(XmlReader reader)
        {
            // Move to the <Speed> element
            if (!reader.IsStartElement("Speed"))
            {
                reader.ReadToDescendant("Speed");
            }

            _speed.ReadXml(reader);
            _bearing.ReadXml(reader);

            reader.Read();
        }