I am trying to serialize a List<MyObject>
. When I create my XmlSerializer as such:
XmlSerializer xmlSerializer = new XmlSerializer(List<MyObject>);
I get the following error: Ambiguous Constructor Reference
How can I fix this so I can serialize and deserialize my list?