Enums use native enums in C#
Enums should not be (badly) emulated with classes in C# but should use native C# enums instead. Java implementation made an explicit choice not to use the (more complex) Java enums, but C# enums are just light-weight syntactic coating over integral types. Fixes issue #171. Change-Id: I9f4d6ba5324400a1e52982e49b58603cb7d7cca7
Showing
- src/idl_gen_general.cpp 109 additions, 61 deletionssrc/idl_gen_general.cpp
- tests/FlatBuffers.Test/FlatBuffersExampleTests.cs 6 additions, 6 deletionstests/FlatBuffers.Test/FlatBuffersExampleTests.cs
- tests/MyGame/Example/Any.cs 3 additions, 8 deletionstests/MyGame/Example/Any.cs
- tests/MyGame/Example/Color.cs 4 additions, 9 deletionstests/MyGame/Example/Color.cs
- tests/MyGame/Example/Monster.cs 4 additions, 4 deletionstests/MyGame/Example/Monster.cs
- tests/MyGame/Example/Vec3.cs 3 additions, 3 deletionstests/MyGame/Example/Vec3.cs
Loading
Please register or sign in to comment