mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-22 14:28:51 +00:00
support json serialization
This commit is contained in:
@@ -6,6 +6,9 @@ namespace MyGame.Example
|
||||
{
|
||||
|
||||
/// Composite components of Monster color.
|
||||
#if ENABLE_JSON_SERIALIZATION
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
||||
#endif
|
||||
[System.FlagsAttribute]
|
||||
public enum Color : byte
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user