You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before I start complaining....my company serializes petabytes to disk per hour using MessagePack. The amount of compute HyperSerializer is going to save us is INSANE. Now for the complaining...
The serialize method throws a TypeInitializationException when I try to serialize dictionaries containing value types for both key and value. The following is the code to reproduce:
var dic = new Dictionary<int, int>() { { 1, 2 }, {3, 4}};
var bytes = HyperSerializer<Dictionary<int, int>>.Serialize(dic);
The text was updated successfully, but these errors were encountered:
Support for dictionaries and classes with properties that are complex types is planned but currently unsupported (see "Limitations" section for more details). I plan on adding support for both of the aforementioned as soon as I can spare a day or two. It shouldn't be that heavy lift so possibly sooner, but the it started as a quick and dirty research project so the codebase isn't winning any beauty pageants.
If you're feeling ambitious and want to get involved to speed things up, let me know!
adam-dot-cohen
changed the title
TypeInitializationException attempting to serialize Dictionary<int, int>
Add support for dictionaries
Mar 5, 2022
Before I start complaining....my company serializes petabytes to disk per hour using MessagePack. The amount of compute HyperSerializer is going to save us is INSANE. Now for the complaining...
The serialize method throws a TypeInitializationException when I try to serialize dictionaries containing value types for both key and value. The following is the code to reproduce:
The text was updated successfully, but these errors were encountered: