I have a struct called coordinate which is contained in a list in another class called 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’d like to serialize the Segment class using the XmlSerializer using Silverlight (on Windows Phone 7). I understand from link text that XmlSerializer doesn’t support List<T>. What is the advised way of serializing a resizable array coordinates?
Thanks, Jurgen
I am of the opinion that one should always design his own serialization formats. It seems to be a minority opinion these days.
You never know what serializer becomes a file format and you really don’t want the ability to read your file formats dependent on .NET framework.