• Mormegil's avatar
    [Issue 252] Add type cast for default enum values in C# · 25c99273
    Mormegil authored
    When creating a “CreateXxx(...)” method for a “simple table” type,
    enum-type fields with a non-zero default must have an explicit
    cast for the respective argument default value, because in C#,
    there is an implicit cast from int to an enum only for 0.
    
    Also, added an example of such type into the example monster_test
    type, so that we test this feature.
    25c99273
Name
Last commit
Last update
..
flatc.cpp Loading commit data...
flathash.cpp Loading commit data...
idl_gen_cpp.cpp Loading commit data...
idl_gen_fbs.cpp Loading commit data...
idl_gen_general.cpp Loading commit data...
idl_gen_go.cpp Loading commit data...
idl_gen_python.cpp Loading commit data...
idl_gen_text.cpp Loading commit data...
idl_parser.cpp Loading commit data...
reflection.cpp Loading commit data...