I'm trying to send a XML based on this entity :
[XmlElement]
public decimal Price { get; set; }
[XmlElement]
public Dictionary<string, string> Data{get; set;}
Before the addition of the latest parameter, there was no problem but the addition of the Dictionary causes trouble.
The Exception is :
Error : There was an error reflecting type 'Project.Entities.Offers'.
Here is the Serializer and the line that cause the problem
The XmlSerializer is doing an Exception
public string Serialize<T>()
{
XmlSerializer serializer = new XmlSerializer(typeof(T));
...
}
Is it a solution to that problem? a workaround?
Thanks to help me