mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
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
15 lines
139 B
C#
15 lines
139 B
C#
// automatically generated, do not modify
|
|
|
|
namespace MyGame.Example
|
|
{
|
|
|
|
public enum Color : sbyte
|
|
{
|
|
Red = 1,
|
|
Green = 2,
|
|
Blue = 8,
|
|
};
|
|
|
|
|
|
}
|