Binary serialization for compact framework 3.5

微笑、不失礼 提交于 2019-12-11 06:56:29

问题


I just realized that CF3.5 doesn't support the binary formatter. I'm using it to send objects over the network and now need to use something else to serialize my data... I heard about Google protocol buffers but found a version that has a bug under CF...

What serialization framework is good for CF?

Update: I forgot to mention, I need it for a commercial product... so GPL won't help


回答1:


There are two that I know of:

protobuf-net

OpenNxSerialization

I've had experience with both (though not on CF) and they are both very quick and easy to use. They both specify support for CF I believe.




回答2:


We use: CompactFormatterPlus + DotNetRemoting (Corrected)

I belive this also has a binary serializer in it: OpenNETCFIOSerial

Correction we actually use the CompactFormatterPlus. I do think that OpenNetCF also has a binary serializer as well. Our data that we sync can be up to 20 Meg in size per device.




回答3:


You can use db4o and configure it to use a MemoryBin as the backing storage and then send the bytes over the wire.

PS: the link points to Java documentation because db4o .Net documentation is in CHM format.



来源:https://stackoverflow.com/questions/3236960/binary-serialization-for-compact-framework-3-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!