Closed bcssov closed 2 years ago
@bcssov hm, I did add that Convert.ChangeType() call in that version, but I can't reproduce your error with the code sample you provide. If I change the type of Settings.Prop2 from NestedObject
to object
I can reproduce the error, though. Was this the case in your code (i.e. the property type was a base type of the value)?
@bcssov new version (2.1.13) pushed to github and nuget. Can you confirm if it solves this bug for you?
Works fine, closing.
I'm not sure if this was supported or not but I had a nested object which was serialized and stored in my settings. An example
Up until 2.11.12 I was using it without any problems. But with this line change
Convert.ChangeType(v, pi.PropertyType)
https://github.com/anakic/Jot/blob/488b9e70493c060dca5b4e1fd75d561f7cceda27/Jot/Configuration/TrackingConfiguration.cs#L111I'm required to implement IConvertible?