Open sstainba opened 1 year ago
Hi @sstainba
It is a known issue with the deserialization where it does not know if the value is Int32 or Int64 so defaults to Int64 just-in-case. See the longer explanation at https://stackoverflow.com/a/44010307
Try changing the type of what is returned to the same type as the property.
p.SetValue(this, Convert.ChangeType(val, p.PropertyType));
I have several int properties I am storing, but when I get them back out, they are returned as Int64.
The save method for my settings...
The load method...