Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dictionaries #1

Open
dlgob007 opened this issue Feb 3, 2022 · 1 comment
Open

Add support for dictionaries #1

dlgob007 opened this issue Feb 3, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@dlgob007
Copy link

dlgob007 commented Feb 3, 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:

var dic = new Dictionary<int, int>() { { 1, 2 }, {3, 4}};
var bytes = HyperSerializer<Dictionary<int, int>>.Serialize(dic);
@adam-dot-cohen adam-dot-cohen added the enhancement New feature or request label Mar 5, 2022
@adam-dot-cohen
Copy link
Owner

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 adam-dot-cohen changed the title TypeInitializationException attempting to serialize Dictionary<int, int> Add support for dictionaries Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants