sestoft / C5

C5 generic collection library for C#/.NET
http://www.itu.dk/research/c5/
MIT License
1.03k stars 181 forks source link

BinaryFormatter -- Classes not marked as serializable #8

Closed LightingRobot closed 10 years ago

LightingRobot commented 12 years ago

The old C5 library documentation states that the collections are all serializable via the binary formatter. Has this been deliberately changed for the newer C5 library?

ondfisk commented 12 years ago

Indeed it has. C5 2.0 is built using the Portable Library Tools which currently does not support [Serializable]. The rationale for doing so can be found here: http://www.itu.dk/research/c5/c5-rasmus-nielsen-2011-05-25.pdf page 21.

hickford commented 10 years ago

This is a killer issue for me. Any suggestions?

ondfisk commented 10 years ago

I've just published a new version which includes a build for .NET 3.5 and .NET 4.0, which both support serialization. Hope this helps :)

hickford commented 10 years ago

Brilliant! Thanks for your help, I shall try it now.

Edit: Tried it, I get an error about strong names https://github.com/sestoft/C5/issues/10#issuecomment-45756109

ondfisk commented 10 years ago

Strong named version added to Nuget

hickford commented 10 years ago

Brilliant, that worked perfectly! Thanks again Rasmus.