mariusmuntean / ChartJs.Blazor

Brings Chart.js charts to Blazor
https://www.iheartblazor.com/
MIT License
677 stars 151 forks source link

Type safe enum deserialization #84

Closed Joelius300 closed 4 years ago

Joelius300 commented 4 years ago

This PR adds and tests deserialization support for both StringEnum and ObjectEnum, our two type-safe-enums. Both classes have been refactored. The equality stuff has been fixed, bugs have been eradicated and the documentation has been updated/improved. I have also added lots of tests to test both of these classes and their serialization behaviour.

This PR is necessary for #70 because there we also need deserialization whereas we previously only needed serialization.