In method ConvertData, property.SetValue(data, value, null); tries to set value for a readonly property. This doesn't throw an exception on .NET 4.0, but on .NET 4.5 it does.
The obvious solution is checking if you can wtite to the property:
if (property.CanWrite) { property.SetValue(data, value, null); }
This seems to be critical bug, I wonder if anyone else encountered this.
In method ConvertData, property.SetValue(data, value, null); tries to set value for a readonly property. This doesn't throw an exception on .NET 4.0, but on .NET 4.5 it does.
The obvious solution is checking if you can wtite to the property: if (property.CanWrite) { property.SetValue(data, value, null); }
This seems to be critical bug, I wonder if anyone else encountered this.