Closed Paulskit closed 7 months ago
When working with enums marked with Flags attribute, AvroConvert serializes the value as long. On deserialize, it fails to cast it back to enum properly, causing InvalidCastException.
InvalidCastException
This small PR is to fix this behaviour.
Hey, thank you for your PR! I plan to release the next version by the end of the week
When working with enums marked with Flags attribute, AvroConvert serializes the value as long. On deserialize, it fails to cast it back to enum properly, causing
InvalidCastException
.This small PR is to fix this behaviour.