I've googled and seen conversions to List<Object>
. But I think my case is different. I have the following:
public class Entry
{
[XmlText]
public string DataLogEntry { get; set; }
}
and used like this:
public class EndLot
{
[XmlElement("Entry")]
public List<Entry> Items;
}
So if I have list of strings ie.
List<string> EndLotLines
How can I create an instance of EndLot
with this list. Am trying to:
List<Entry> Items = (List<Entry>)EndLotLines;