public override XmlString Format(List <double> list)
        {
            StringBuilder sb = new StringBuilder(list.Count * 3);

            foreach (var d in list)
            {
                sb.Append(Double2XmlSerializer.FormatG17(d)).Append(';');
            }
            return(new XmlString(sb.ToString()));
        }
 public override List <double> Parse(XmlString data)
 {
     try {
         List <double> list = new List <double>();
         foreach (var value in data.Data.EnumerateSplit(';'))
         {
             list.Add(Double2XmlSerializer.ParseG17(value));
         }
         return(list);
     }
     catch (InvalidCastException e) {
         throw new PersistenceException("Invalid element data during reconstruction of List<double>.", e);
     }
     catch (OverflowException e) {
         throw new PersistenceException("Overflow during element parsing while trying to reconstruct List<double>.", e);
     }
 }
 protected override object ParseValue(string o)
 {
     return(Double2XmlSerializer.ParseG17(o));
 }
 protected override string FormatValue(object o)
 {
     return(Double2XmlSerializer.FormatG17((double)o));
 }