This array:
public List<Publisher> Publishers
{
get { return _Publishers; }
set { _Publishers = value; }
}
private List<Publisher> _Publishers;
Is used by the XmlSerializer to store the data in the XML file.
But in terms of application use, I really need a Dictionary<string, Publisher> so that I can quickly find the right Publisher object based on the name.
Now, I realise that I can't do this directly using the XMLSerializer and that
is why I am using the List. Is there any neat way to achieve what I desire once the data is read in from the XML file?
I realise I can iterate the list and build a dictionary. But is there an alternative?