/// <summary>
        /// Serialize the sensors in this registry.
        /// </summary>
        /// <returns></returns>
        public string Serialize()
        {
            var builder = new StringBuilder();

            using (var xmlWriter = XmlWriter.Create(builder))
            {
                var serializingObject = new SerializingObject(this.Sensors);
                var serializer        = new DataContractSerializer(typeof(SerializingObject));
                serializer.WriteObject(xmlWriter, serializingObject);
            }
            return(builder.ToString());
        }
 /// <summary>
 /// Serialize the sensors in this registry.
 /// </summary>
 /// <returns></returns>
 public string Serialize()
 {
     var builder = new StringBuilder();
     using (var xmlWriter = XmlWriter.Create(builder))
     {
         var serializingObject = new SerializingObject(this.Sensors);
         var serializer = new DataContractSerializer(typeof(SerializingObject));
         serializer.WriteObject(xmlWriter, serializingObject);
     }
     return builder.ToString();
 }