How to serialize List <T> in Silverlight?
I have a structure called a coordinate that is listed in another class called a segment.
public struct Coordinate
{
public double Latitude { get; set; }
public double Longtitude { get; set; }
public double Altitude { get; set; }
public DateTime Time { get; set; }
}
public class Segment
{
private List<Coordinate> coordinates;
...
}
I would like to serialize the Segment class using XmlSerializer using Silverlight (on Windows Phone 7). I understand from the link text that XmlSerializer does not support List<T>. What is the recommended way to serialize the coordinates of a mutable array?
Thanks, Jurgen
+3
3 answers