This project is read-only.

Silverlight Decimal Serialization

Nov 9, 2011 at 12:24 PM
Edited Nov 9, 2011 at 12:25 PM

I'm not super clued up on Serialization, but any specific reason why Decimal cannot be serialized / deserialized in Silverlight?

Hack, but this describes how it can be accomplished, but when I tried I got a "Cannot read beyond end of stream" during deserilization (that kinda makes sense, i think, given that I have no control over the read/write offsets inside the stream?).

Nov 9, 2011 at 1:36 PM

hi, many thanks. indeed decimal is supported in Silverlight and Compact Framework. Only BinaryReader.ReadDecimal() and BinaryWriter do not support reading/writing of decimal types in Silverlight and CF.

In the v.2.16 I have implemented the workaround you suggest and it works flawless with decimals.

thanks again for the feedback.