When I add a normal property of type string I have no problem to deserialize an old file. But If I add a more complex type like a Dictionary<,> it isn't working. I get an exception like "xml don't correspand to the given class" (sorry I only have the exception-message in german)
How can I get this to work without coding a fallback-mode to the old class?
public class Connection2Sap
{
[XmlAttribute]
public string Name { get; set; }
public string Server { get; set; }
public string Username { get; set; }
public Connection2SapPassword Password { get; set; }
public string SystemNumber { get; set; }
public string Client { get; set; }
public string Language { get; set; }
public bool MockModeEnabled { get; set; }
public Dictionary<string, string> AdditionalConfigParameters { get; set; } // NEW!
public Connection2Sap()
{
Password = new Connection2SapPassword();
AdditionalConfigParameters = new Dictionary<string, string>();
}
}