Hi I am trying to serialize
FileStream fileStream = new FileStream("batches.xml", FileMode.Open);
XmlSerializer serializer = new XmlSerializer(typeof(List<Batche>));
List<Batche> listOfBatches = new List<Batche>();
[Serializable]
[XmlRoot("Batch")]
public class Batche
{
[XmlElement("Title")]
public string Title
{
get;set;
}
[XmlArray("ListOfLinks"),XmlArrayItem("Link",Type = typeof(Link))]
public List<Link> Links
{
get;set;
}
}
[Serializable]
[XmlRoot("Link")]
public class Link
{
[XmlElement("Uri")]
public Uri Uri
{
get;
set;
}
[XmlElement("Status")]
public string Status
{
get;
set;
}
}
Getting following error : There was an error reflecting type 'System.Collections.Generic.List`1[DownloadTRON.Entities.Batche]'.
been trying this since last 4 hours, can any body point out what i am doing Wrong !
Regards Pravin