FlatSharp 7.7.0 is a small feature release. Thanks to @trumully and @parched, unions now have implicit operators for assignment:
SomeUnion union = "hello";
Thanks for the contribution!
Additionally, a bug has been fixed relating to use of the required
modifier with various setter options. Previous versions of FlatSharp would generate invalid C# if using required with a non-public setter. The new behavior is to always enforce the concept of required when serializing/parsing, but to only add the C# required
keyword to a property when the setter's visibility is public.
What's Changed
- Fix required properties by @jamescourtney in #439
- Add implicit operator to Union types by @trumully in #438
New Contributors
Full Changelog: 7.6.0...7.7.0